Ticket #38271: gsl.clang32.diff
File gsl.clang32.diff, 2.9 KB (added by daitakahashi, 12 years ago) |
---|
-
Portfile
old new 57 57 } 58 58 } 59 59 60 variant gcc43 conflicts gcc44 gcc45 gcc46 gcc47 description "Use GCC 4.3 for compilation of GSL" {60 variant gcc43 conflicts gcc44 gcc45 gcc46 gcc47 clang32 description "Use GCC 4.3 for compilation of GSL" { 61 61 depends_build-append port:gcc43 62 62 configure.compiler macports-gcc-4.3 63 63 } 64 64 65 variant gcc44 conflicts gcc43 gcc45 gcc46 gcc47 description "Use GCC 4.4 for compilation of GSL" {65 variant gcc44 conflicts gcc43 gcc45 gcc46 gcc47 clang32 description "Use GCC 4.4 for compilation of GSL" { 66 66 depends_build-append port:gcc44 67 67 configure.compiler macports-gcc-4.4 68 68 } 69 69 70 variant gcc45 conflicts gcc43 gcc44 gcc46 gcc47 description "Use GCC 4.5 for compilation of GSL" {70 variant gcc45 conflicts gcc43 gcc44 gcc46 gcc47 clang32 description "Use GCC 4.5 for compilation of GSL" { 71 71 depends_build-append port:gcc45 72 72 configure.compiler macports-gcc-4.5 73 73 } 74 74 75 variant gcc46 conflicts gcc43 gcc44 gcc45 gcc47 description "Use GCC 4.6 for compilation of GSL" {75 variant gcc46 conflicts gcc43 gcc44 gcc45 gcc47 clang32 description "Use GCC 4.6 for compilation of GSL" { 76 76 depends_build-append port:gcc46 77 77 configure.compiler macports-gcc-4.6 78 78 } 79 79 80 variant gcc47 conflicts gcc43 gcc44 gcc45 gcc46 description "Use GCC 4.7 for compilation of GSL" {80 variant gcc47 conflicts gcc43 gcc44 gcc45 gcc46 clang32 description "Use GCC 4.7 for compilation of GSL" { 81 81 depends_build-append port:gcc47 82 82 configure.compiler macports-gcc-4.7 83 83 } 84 84 85 variant clang32 conflicts gcc43 gcc44 gcc45 gcc46 gcc47 description "Use clang 3.2 for compilation of GSL" { 86 depends_build-append port:clang-3.2 87 configure.compiler macports-clang-3.2 88 patchfiles-append fix-mllvm-args-ltmain.sh.diff 89 } 90 85 91 variant optimize description "Provide further optimization options (depending on compiler used)" { 86 configure.cflags-append "-ftree-vectorize -O3" 92 if { [variant_isset clang32] } { 93 configure.cflags-append "-O3 -mllvm -vectorize-loops" 94 } else { 95 configure.cflags-append "-ftree-vectorize -O3" 96 } 87 97 } 88 98 89 99 platform darwin i386 { 90 if { [variant_isset optimize] && ( [variant_isset gcc43] || [variant_isset gcc44] || [variant_isset gcc45] || [variant_isset gcc46] || [variant_isset gcc47] ) } { 91 configure.cflags-append "-march=native" 100 if { [variant_isset optimize] } { 101 if { [variant_isset clang32] } { 102 configure.cflags-append "-march=native" 103 } elseif { [variant_isset gcc43] } { 104 configure.cflags-append "-march=native" 105 } elseif { [variant_isset gcc44] || [variant_isset gcc45] || [variant_isset gcc46] || [variant_isset gcc47] } { 106 configure.cflags-append "-march=native -mno-avx" 107 } 92 108 } 93 109 }