diff options
author | Boroondas Gupte <hg@boroon.dasgupta.ch> | 2011-06-21 00:20:03 +0200 |
---|---|---|
committer | Boroondas Gupte <hg@boroon.dasgupta.ch> | 2011-06-21 00:20:03 +0200 |
commit | 0710fea0487152cdc8d2fb3f2c9ae1db0e1ee276 (patch) | |
tree | 0f14b4147e99b132381f143a2b58ba608456a009 /indra/cmake | |
parent | 7f6d49df43c660b9f5632ffb8a30f90ee718cac0 (diff) | |
parent | a28a53fcf80a9c03dd57b925bc4c70e6a2790c10 (diff) |
merged OPEN-99: use -march=pentium* for 32-bit builds only
Diffstat (limited to 'indra/cmake')
-rw-r--r-- | indra/cmake/00-Common.cmake | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/cmake/00-Common.cmake b/indra/cmake/00-Common.cmake index 2c974fb4ff..0266239454 100644 --- a/indra/cmake/00-Common.cmake +++ b/indra/cmake/00-Common.cmake @@ -171,7 +171,10 @@ if (LINUX) add_definitions(-fvisibility=hidden) # don't catch SIGCHLD in our base application class for the viewer - some of our 3rd party libs may need their *own* SIGCHLD handler to work. Sigh! The viewer doesn't need to catch SIGCHLD anyway. add_definitions(-DLL_IGNORE_SIGCHLD) - add_definitions(-march=pentium4 -mfpmath=sse) + if (WORD_SIZE EQUAL 32) + add_definitions(-march=pentium4) + endif (WORD_SIZE EQUAL 32) + add_definitions(-mfpmath=sse) #add_definitions(-ftree-vectorize) # THIS CRASHES GCC 3.1-3.2 if (NOT STANDALONE) # this stops us requiring a really recent glibc at runtime |