[103359] trunk/dports/science/KlustaKwik/Portfile
Revision: 103359 https://trac.macports.org/changeset/103359 Author: larryv@macports.org Date: 2013-02-22 15:46:02 -0800 (Fri, 22 Feb 2013) Log Message: ----------- maskedKlustaKwik: Throw an error if +native is unsupported. The previous code that tried setting configure.compiler didn't actually work; the build stage would not receive the correct configure.cxx. Not sure how to make that work, so it might be better to just wait for 2.2, which will include a compatible fallback for all configurations. Modified Paths: -------------- trunk/dports/science/KlustaKwik/Portfile Modified: trunk/dports/science/KlustaKwik/Portfile =================================================================== --- trunk/dports/science/KlustaKwik/Portfile 2013-02-22 22:47:53 UTC (rev 103358) +++ trunk/dports/science/KlustaKwik/Portfile 2013-02-22 23:46:02 UTC (rev 103359) @@ -66,12 +66,17 @@ apple-gcc-4.2 apple-gcc-4.0 \ gcc-4.2 gcc-4.0 gcc-3.3 - # Use MacPorts' clang if fallback compiler is unsupported. - # TODO: Remove when base fallback lists are updated (2.2?). - if {[regexp {llvm-gcc|apple-gcc|^gcc} ${configure.compiler}]} { - configure.compiler macports-clang-3.2 - depends_build-append port:clang-3.2 - depends_skip_archcheck-append clang-3.2 + # Error out if fallback compiler is unsupported. + # TODO: Remove when release has auto compiler dependencies and + # macports-clang-3.2 in all fallback lists (2.2?). + pre-configure { + if {[regexp {llvm-gcc|apple-gcc|^gcc} ${configure.compiler}]} { + ui_error " +**** +**** The +native variant requires a compiler that supports \"-march=native\". +****" + return -code error "unsupported compiler: ${configure.compiler}" + } } build.target native
participants (1)
-
larryv@macports.org