summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoroondas Gupte <hg@boroon.dasgupta.ch>2011-06-21 00:14:28 +0200
committerBoroondas Gupte <hg@boroon.dasgupta.ch>2011-06-21 00:14:28 +0200
commit541389b6985e7f2bcad540db4027f2f7f95dd34f (patch)
treeeb8928581fd48a4ef7bede47b566ef9d8786b7e6
parent7f5cc148bf0c2b8c77205ae5cb6db9841c0654d9 (diff)
parent0488142b93b6a5cc804a98e28e5dedc28cd4ea54 (diff)
merged OPEN-99: use -march=pentium3 for 32-bit builds only
-rw-r--r--doc/contributions.txt1
-rw-r--r--indra/cmake/00-Common.cmake5
2 files changed, 5 insertions, 1 deletions
diff --git a/doc/contributions.txt b/doc/contributions.txt
index 5f209a6675..5baaf6d12e 100644
--- a/doc/contributions.txt
+++ b/doc/contributions.txt
@@ -148,6 +148,7 @@ Blakar Ogre
blino Nakamura
VWR-17
Boroondas Gupte
+ OPEN-99
SNOW-278
VWR-233
WEB-262
diff --git a/indra/cmake/00-Common.cmake b/indra/cmake/00-Common.cmake
index 802db82091..f0e2890448 100644
--- a/indra/cmake/00-Common.cmake
+++ b/indra/cmake/00-Common.cmake
@@ -169,7 +169,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=pentium3 -mfpmath=sse)
+ if (WORD_SIZE EQUAL 32)
+ add_definitions(-march=pentium3)
+ 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