diff options
author | lloyd <[email protected]> | 2013-12-14 16:15:25 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2013-12-14 16:15:25 +0000 |
commit | 03d02309753b1a6c2e512bff27dca190e8f64e5c (patch) | |
tree | 7eb4f4dc1e5b264676f252c2a12446ce551a52af /src/build-data/cc | |
parent | 31064f20836265e792a5dc703b84219b5dd774ff (diff) |
Add AVX2 compiler flags for GCC and Clang. Tidy compiler option ordering.
Diffstat (limited to 'src/build-data/cc')
-rw-r--r-- | src/build-data/cc/clang.txt | 12 | ||||
-rw-r--r-- | src/build-data/cc/gcc.txt | 2 |
2 files changed, 11 insertions, 3 deletions
diff --git a/src/build-data/cc/clang.txt b/src/build-data/cc/clang.txt index 0af44768b..163e64272 100644 --- a/src/build-data/cc/clang.txt +++ b/src/build-data/cc/clang.txt @@ -30,9 +30,14 @@ darwin -> "$(CXX) -dynamiclib -fPIC -install_name $(LIBDIR)/$(SONAME)" </so_link_flags> <isa_flags> +"sse2" -> "-msse2" +"ssse3" -> "-mssse3" +"sse4.1" -> "-msse4.1" +"sse4.2" -> "-msse4.2" +"avx" -> "-mavx" "aes-ni" -> "-maes" -"ssse3" -> "-mssse3" -"sse2" -> "-msse2" +"avx2" -> "-mavx2" +"bmi2" -> "-mbmi2" </isa_flags> <mach_opt> @@ -43,7 +48,8 @@ ivybridge -> "-march=core-avx-i" </mach_opt> <mach_abi_linking> -all -> "-stdlib=libc++ -pthread" +#all -> "-stdlib=libc++ -pthread" +all -> "-stdlib=libstdc++ -pthread" x86_64 -> "-m64" ppc64 -> "-m64" diff --git a/src/build-data/cc/gcc.txt b/src/build-data/cc/gcc.txt index b8b9b15b3..52d5020e2 100644 --- a/src/build-data/cc/gcc.txt +++ b/src/build-data/cc/gcc.txt @@ -44,6 +44,8 @@ solaris -> "$(CXX) -shared -fPIC -Wl,-h,$(SONAME)" "sse4.2" -> "-msse4.2" "avx" -> "-mavx" "aes-ni" -> "-maes" +"avx2" -> "-mavx2" +"bmi2" -> "-mbmi2" </isa_flags> <mach_opt> |