[cfe-commits] [libcxxabi] r149250 - /libcxxabi/trunk/lib/buildit
Howard Hinnant
hhinnant at apple.com
Mon Jan 30 08:03:23 PST 2012
Author: hhinnant
Date: Mon Jan 30 10:03:23 2012
New Revision: 149250
URL: http://llvm.org/viewvc/llvm-project?rev=149250&view=rev
Log:
Add -fstrict-aliasing -Wstrict-aliasing and change optimization from -Os to -O3
Modified:
libcxxabi/trunk/lib/buildit
Modified: libcxxabi/trunk/lib/buildit
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/lib/buildit?rev=149250&r1=149249&r2=149250&view=diff
==============================================================================
--- libcxxabi/trunk/lib/buildit (original)
+++ libcxxabi/trunk/lib/buildit Mon Jan 30 10:03:23 2012
@@ -27,7 +27,7 @@
RC_ProjectSourceVersion=1
fi
-EXTRA_FLAGS="-std=c++0x -stdlib=libc++"
+EXTRA_FLAGS="-std=c++0x -stdlib=libc++ -fstrict-aliasing -Wstrict-aliasing=2"
case $TRIPLE in
*-apple-*)
@@ -73,7 +73,7 @@
set -x
for FILE in ../src/*.cpp; do
- $CXX -c -g -Os $RC_CFLAGS $EXTRA_FLAGS -I../include $FILE
+ $CXX -c -g -O3 $RC_CFLAGS $EXTRA_FLAGS -I../include $FILE
done
case $TRIPLE in
*-*-mingw*)
More information about the cfe-commits
mailing list