diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2020-04-18 13:21:16 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2020-04-18 13:21:16 +0200 |
commit | c2a3b790f75f68ad1bfc8950c560be2171b14da6 (patch) | |
tree | d5607f971b4f69065d6ee0d057b1516e40200b97 /sdk-paths-sthalik@Clang-Linux.cmake | |
parent | 7e7774ebad9b2d60e9cf071dbb7aaa483bd59a8d (diff) |
update my sdk paths
Diffstat (limited to 'sdk-paths-sthalik@Clang-Linux.cmake')
-rw-r--r-- | sdk-paths-sthalik@Clang-Linux.cmake | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sdk-paths-sthalik@Clang-Linux.cmake b/sdk-paths-sthalik@Clang-Linux.cmake index b72a7a81..38609c0b 100644 --- a/sdk-paths-sthalik@Clang-Linux.cmake +++ b/sdk-paths-sthalik@Clang-Linux.cmake @@ -13,7 +13,8 @@ add_compile_options( -Wno-padded -Wno-shadow-field -Wno-shorten-64-to-32 -Wno-sign-conversion -Wno-extra-semi-stmt # for qt moc -) + -Wno-implicit-int-float-conversion + -Wno-alloca) set(base-flags "-Wall -Wextra -Wpedantic") @@ -33,8 +34,14 @@ set(CMAKE_C_FLAGS_RELEASE "${opt-flags} ${CMAKE_C_FLAGS_RELEASE}") set(CMAKE_CXX_FLAGS_DEBUG "-ggdb ${CMAKE_CXX_FLAGS_DEBUG}") set(CMAKE_C_FLAGS_DEBUG "-ggdb ${CMAKE_C_FLAGS_DEBUG}") +set(CMAKE_C_FLAGS "") +set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS}") + +add_compile_options("-emit-llvm") +add_link_options("-fuse-ld=lld") + foreach(x EXE MODULE SHARED) - set(CMAKE_${x}_LINKER_FLAGS "-fuse-ld=lld ${CMAKE_${x}_LINKER_FLAGS}") + set(CMAKE_${x}_LINKER_FLAGS "${CMAKE_${x}_LINKER_FLAGS}") endforeach() function(set_sdk var path) |