diff options
author | Aleric Inglewood | 2010-09-28 03:12:54 +0200 |
---|---|---|
committer | McCabe Maxsted | 2010-10-01 20:51:14 -0700 |
commit | 385a8ad63e8c6458112f2f4031e0a7fc1a12c38f (patch) | |
tree | d1d8f3630c674bfd3179a195ab556d67c3b88830 /linden | |
parent | RED-556: SNOW-800: Massively duplicated objects (diff) | |
download | meta-impy-385a8ad63e8c6458112f2f4031e0a7fc1a12c38f.zip meta-impy-385a8ad63e8c6458112f2f4031e0a7fc1a12c38f.tar.gz meta-impy-385a8ad63e8c6458112f2f4031e0a7fc1a12c38f.tar.bz2 meta-impy-385a8ad63e8c6458112f2f4031e0a7fc1a12c38f.tar.xz |
RED-561: Optimization flags used during --Type=Debug (linux x86_64)
See http://redmine.imprudenceviewer.org/issues/561
Fixed erroneous use of optimization flags when not compiling Release.
Also removed -DLL_VECTORIZE from compile options: that is set in
a header file (llv4math.h), not on the commandline.
Patch affects only 64 bit linux.
Diffstat (limited to 'linden')
-rw-r--r-- | linden/indra/cmake/00-Common.cmake | 21 | ||||
-rw-r--r-- | linden/indra/newview/llappviewer.cpp | 2 |
2 files changed, 5 insertions, 18 deletions
diff --git a/linden/indra/cmake/00-Common.cmake b/linden/indra/cmake/00-Common.cmake index d1f379c..3497ec9 100644 --- a/linden/indra/cmake/00-Common.cmake +++ b/linden/indra/cmake/00-Common.cmake | |||
@@ -169,23 +169,10 @@ if (LINUX) | |||
169 | add_definitions(-fno-stack-protector) | 169 | add_definitions(-fno-stack-protector) |
170 | endif (NOT STANDALONE) | 170 | endif (NOT STANDALONE) |
171 | if (${ARCH} STREQUAL "x86_64") | 171 | if (${ARCH} STREQUAL "x86_64") |
172 | add_definitions( -DLINUX64=1 | 172 | # This rather needs to be done elsewhere |
173 | #this rather needs to be done elsewhere | 173 | # anyway these are the flags for the 64bit releases: |
174 | #anyway these are the flags for the 64bit releases: | 174 | add_definitions(-DLINUX64=1 -pipe) |
175 | -DLL_VECTORIZE=1 | 175 | set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -fomit-frame-pointer -mmmx -msse -mfpmath=sse -msse2 -ffast-math -ftree-vectorize -fweb -fexpensive-optimizations -frename-registers") |
176 | -O2 | ||
177 | -fomit-frame-pointer | ||
178 | -pipe | ||
179 | -mmmx | ||
180 | -msse | ||
181 | -mfpmath=sse | ||
182 | -msse2 | ||
183 | -ffast-math | ||
184 | -ftree-vectorize | ||
185 | -fweb -fexpensive-optimizations | ||
186 | -frename-registers | ||
187 | ) | ||
188 | |||
189 | endif (${ARCH} STREQUAL "x86_64") | 176 | endif (${ARCH} STREQUAL "x86_64") |
190 | endif (VIEWER) | 177 | endif (VIEWER) |
191 | 178 | ||
diff --git a/linden/indra/newview/llappviewer.cpp b/linden/indra/newview/llappviewer.cpp index 817517e..0fbcafc 100644 --- a/linden/indra/newview/llappviewer.cpp +++ b/linden/indra/newview/llappviewer.cpp | |||
@@ -61,7 +61,7 @@ | |||
61 | #include "llviewerwindow.h" | 61 | #include "llviewerwindow.h" |
62 | #include "llviewerdisplay.h" | 62 | #include "llviewerdisplay.h" |
63 | #include "llviewermedia.h" | 63 | #include "llviewermedia.h" |
64 | 64 | #include "llv4math.h" // for LL_VECTORIZE | |
65 | 65 | ||
66 | #include "llviewermessage.h" | 66 | #include "llviewermessage.h" |
67 | #include "llviewerobjectlist.h" | 67 | #include "llviewerobjectlist.h" |