[MacPorts] UsingTheRightCompiler modified

MacPorts noreply at macports.org
Wed Jul 30 11:52:54 PDT 2014


Page "UsingTheRightCompiler" was changed by egall at gwmail.gwu.edu
Diff URL: <https://trac.macports.org/wiki/UsingTheRightCompiler?action=diff&version=30>
Revision 30
Comment: Mention "compiler.blacklist" and friends, which had previously been missing from this page
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: UsingTheRightCompiler
=========================================================================
--- UsingTheRightCompiler (version: 29)
+++ UsingTheRightCompiler (version: 30)
@@ -48,6 +48,14 @@
 the maintainer can select a different compiler for that port by overwriting ${configure.cc} and friends,
 but what you probably want to do instead is overwrite the ${configure.compiler} variable,
 which sets all the related variables for you simultaneously.
+However, instead of overriding ${configure.compiler} manually,
+in most cases you should instead use some combination of the following keywords instead:
+ - `compiler.blacklist` (prevent the named compiler from being used)
+ - `compiler.whitelist` (only allow the named compiler to be used)
+ - `compiler.fallback` (if all other compilers are blacklisted, allow the named compiler to be used)
+These keywords all modify the compiler fallback list,
+which can be found in the MacPorts sources:  [[browser:tags/release_2_3_1/base/src/port1.0/portconfigure.tcl#L426]]
+
 MacPorts knows about several compilers:
 
 ||= configure.compiler value        =||= Compiler                      =||= Provided by                    =||
-------8<------8<------8<------8<------8<------8<------8<------8<--------

--
Page URL: <https://trac.macports.org/wiki/UsingTheRightCompiler>
MacPorts <http://www.macports.org/>
Ports system for OS X

This is an automated message. Someone added your email address to be
notified of changes on 'UsingTheRightCompiler' page.
If it was not you, please report to .


More information about the macports-changes mailing list