mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-12-25 23:13:35 +00:00
update .gitignore
This commit is contained in:
parent
426d34a0aa
commit
a19afaaab0
5
.gitignore
vendored
5
.gitignore
vendored
@ -122,4 +122,7 @@ docker/__pycache__
|
||||
docker-compose.override.yml
|
||||
|
||||
!*Test.bin
|
||||
# !cmake/* Why was this directory excluded?
|
||||
|
||||
# CMake scripts
|
||||
!cmake/*
|
||||
!cmake/toolchains/*
|
||||
|
14
cmake/toolchains/linux-clang.cmake
Normal file
14
cmake/toolchains/linux-clang.cmake
Normal file
@ -0,0 +1,14 @@
|
||||
# Try and find a clang-16 install, falling back to a generic clang install otherwise
|
||||
find_program(CLANG_C_COMPILER clang-16 | clang REQUIRED)
|
||||
find_program(CLANG_CXX_COMPILER clang++-16 | clang++ REQUIRED)
|
||||
|
||||
# Debug messages
|
||||
message("CLANG_C_COMPILER = ${CLANG_C_COMPILER}")
|
||||
message("CLANG_CXX_COMPILER = ${CLANG_CXX_COMPILER}")
|
||||
|
||||
# Set compilers to clang
|
||||
set(CMAKE_C_COMPILER ${CLANG_C_COMPILER})
|
||||
set(CMAKE_CXX_COMPILER ${CLANG_CXX_COMPILER})
|
||||
|
||||
# Set linker to lld
|
||||
add_link_options("-fuse-ld=lld")
|
11
cmake/toolchains/linux-gcc.cmake
Normal file
11
cmake/toolchains/linux-gcc.cmake
Normal file
@ -0,0 +1,11 @@
|
||||
# Try and find a gcc/g++ install, falling back to a generic clang install otherwise
|
||||
find_program(GNU_C_COMPILER gcc REQUIRED)
|
||||
find_program(GNU_CXX_COMPILER g++ REQUIRED)
|
||||
|
||||
# Debug messages
|
||||
message("GNU_C_COMPILER = ${GNU_C_COMPILER}")
|
||||
message("GNU_CXX_COMPILER = ${GNU_C_COMPILER}")
|
||||
|
||||
# Set compilers to clang
|
||||
set(CMAKE_C_COMPILER ${GNU_C_COMPILER})
|
||||
set(CMAKE_CXX_COMPILER ${GNU_CXX_COMPILER})
|
Loading…
Reference in New Issue
Block a user