tdlight-java-natives/.github/workflows/toolchains/cmake-includes-ubuntu2004.c...

14 lines
566 B
CMake

SET(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_C_COMPILER "/usr/bin/ccache /usr/bin/clang-10")
set(CMAKE_CXX_COMPILER "/usr/bin/ccache /usr/bin/clang++-10")
set(CMAKE_AR /usr/bin/llvm-ar-10)
# Set various compiler flags
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-psabi --specs=nosys.specs -fdata-sections -ffunction-sections -Wl,--gc-sections")
set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_CXX_FLAGS} -stdlib=libc++ -fno-exceptions")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -stdlib=libc++ -lc++ -lc++abi")
# Use LLD on linux
add_link_options("-fuse-ld=lld")