From: Uwe Hermann Date: Wed, 23 Sep 2020 19:19:38 +0000 (+0200) Subject: CMakeLists.txt: Only use -Wa,-mbig-obj and -O3 on Windows. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=d8cdab78d434fa575ec3adc61b61cab252a2a8ed;p=pulseview.git CMakeLists.txt: Only use -Wa,-mbig-obj and -O3 on Windows. Note: -mbig-obj has been available on 64bit bit builds for a while now, but on 32bit builds it needs a rather recent binutils version (2.35, 07/2020). --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 04920a6c..add9c02f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -465,8 +465,9 @@ add_definitions(-D__STDC_LIMIT_MACROS) add_definitions(-Wall -Wextra) add_definitions(-std=c++11) add_definitions(-DBOOST_MATH_DISABLE_FLOAT128=1) -add_definitions(-Wa,-mbig-obj) -add_definitions(-O3) +if(WIN32) + add_definitions(-Wa,-mbig-obj -O3) +endif() if(ENABLE_FLOW) add_definitions(-DENABLE_FLOW)