diff options
author | Daniil Cherednik <dan.cherednik@gmail.com> | 2022-09-21 20:17:38 +0300 |
---|---|---|
committer | Daniil Cherednik <dan.cherednik@gmail.com> | 2022-09-21 20:17:38 +0300 |
commit | e6c9b17192c56494adba359d5e132c431b241191 (patch) | |
tree | 6f2449871a118a0e8919ce842b1174e06cb470ef /cmake/global_flags.cmake | |
parent | 285021ab1aac39e84b269d9bacd4deee69cf63fc (diff) | |
download | ydb-e6c9b17192c56494adba359d5e132c431b241191.tar.gz |
Ydb stable 22-4-2122.4.21
x-stable-origin-commit: e89099581237299a132feafb5b58af59ebd0468a
Diffstat (limited to 'cmake/global_flags.cmake')
-rw-r--r-- | cmake/global_flags.cmake | 69 |
1 files changed, 39 insertions, 30 deletions
diff --git a/cmake/global_flags.cmake b/cmake/global_flags.cmake index dc68e42d12..653c6c1afa 100644 --- a/cmake/global_flags.cmake +++ b/cmake/global_flags.cmake @@ -1,5 +1,4 @@ set(CMAKE_C_FLAGS "\ - -m64 \ -fexceptions \ -fno-common \ -fcolor-diagnostics \ @@ -21,26 +20,11 @@ set(CMAKE_C_FLAGS "\ -D_GNU_SOURCE \ -D_YNDX_LIBUNWIND_ENABLE_EXCEPTION_BACKTRACE \ -D__LONG_LONG_SUPPORTED \ - -DSSE_ENABLED=1 \ - -DSSE3_ENABLED=1 \ - -DSSSE3_ENABLED=1 \ - -DSSE41_ENABLED=1 \ - -DSSE42_ENABLED=1 \ - -DPOPCNT_ENABLED=1 \ - -DCX16_ENABLED=1 \ -D_libunwind_ \ -DLIBCXX_BUILDING_LIBCXXRT \ - -msse2 \ - -msse3 \ - -mssse3 \ - -msse4.1 \ - -msse4.2 \ - -mpopcnt \ - -mcx16 \ " ) set(CMAKE_CXX_FLAGS "\ - -m64 \ -fexceptions \ -fno-common \ -fcolor-diagnostics \ @@ -62,22 +46,8 @@ set(CMAKE_CXX_FLAGS "\ -D_GNU_SOURCE \ -D_YNDX_LIBUNWIND_ENABLE_EXCEPTION_BACKTRACE \ -D__LONG_LONG_SUPPORTED \ - -DSSE_ENABLED=1 \ - -DSSE3_ENABLED=1 \ - -DSSSE3_ENABLED=1 \ - -DSSE41_ENABLED=1 \ - -DSSE42_ENABLED=1 \ - -DPOPCNT_ENABLED=1 \ - -DCX16_ENABLED=1 \ -D_libunwind_ \ -DLIBCXX_BUILDING_LIBCXXRT \ - -msse2 \ - -msse3 \ - -mssse3 \ - -msse4.1 \ - -msse4.2 \ - -mpopcnt \ - -mcx16 \ -Woverloaded-virtual \ -Wimport-preprocessor-directive-pedantic \ -Wno-undefined-var-template \ @@ -104,3 +74,42 @@ elseif(UNIX) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fuse-init-array") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fuse-init-array") endif() + +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") + set(CMAKE_CXX_FLAGS "\ + ${CMAKE_CXX_FLAGS} \ + -m64 \ + -DSSE_ENABLED=1 \ + -DSSE3_ENABLED=1 \ + -DSSSE3_ENABLED=1 \ + -DSSE41_ENABLED=1 \ + -DSSE42_ENABLED=1 \ + -DPOPCNT_ENABLED=1 \ + -DCX16_ENABLED=1 \ + -msse2 \ + -msse3 \ + -mssse3 \ + -msse4.1 \ + -msse4.2 \ + -mpopcnt \ + -mcx16 \ + ") + set(CMAKE_C_FLAGS "\ + ${CMAKE_C_FLAGS} \ + -m64 \ + -msse2 \ + -msse3 \ + -mssse3 \ + -msse4.1 \ + -msse4.2 \ + -mpopcnt \ + -mcx16 \ + -DSSE_ENABLED=1 \ + -DSSE3_ENABLED=1 \ + -DSSSE3_ENABLED=1 \ + -DSSE41_ENABLED=1 \ + -DSSE42_ENABLED=1 \ + -DPOPCNT_ENABLED=1 \ + -DCX16_ENABLED=1 \ + ") +endif() |