1
0

Merge pull request #536 from worktycho/nativearch

Added -march=native to linux targets
This commit is contained in:
Mattes D 2014-01-13 10:19:59 -08:00
commit 252def339d

View File

@ -46,12 +46,17 @@ else()
add_flags_cxx("-pthread")
endif()
# Allow for a forced 32-bit build under 32-bit OS:
# Allow for a forced 32-bit build under 64-bit OS:
if (FORCE_32)
add_flags_cxx("-m32")
add_flags_lnk("-m32")
endif()
#have the compiler generate code spercificly targeted at the current machine on Linux
if(LINUX AND NOT CROSSCOMPILE)
add_flags_cxx("-march=native")
endif()
# Set lower warnings-level for the libraries:
if (MSVC)
# Remove /W3 from command line -- cannot just cancel it later with /w like in unix, MSVC produces a D9025 warning (option1 overriden by option2)