[MacPorts] CompilerSelection modified

MacPorts Wiki noreply at macports.org
Tue Jan 28 11:52:53 UTC 2020


Page "CompilerSelection" was changed by MarcusCalhoun-Lopez
Diff URL: <https://trac.macports.org/wiki/CompilerSelection?action=diff&version=8>
Revision 8
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: CompilerSelection
=========================================================================
--- CompilerSelection (version: 7)
+++ CompilerSelection (version: 8)
@@ -77,8 +77,23 @@
 None of the compilers provided by Xcode implement [https://en.wikipedia.org/wiki/Message_Passing_Interface MPI].
 To implement it, [https://en.wikipedia.org/wiki/MPICH MPICH] and [https://en.wikipedia.org/wiki/Open_MPI Open MPI] provide wrappers for Clang, GCC, and Xcode.
 
-The compilers provided by Xcode only support [https://en.wikipedia.org/wiki/Thread-local_storage thread-local storage] if the OS supports it, which did not happen until [https://en.wikipedia.org/wiki/Mac_OS_X_Lion Mac OS X Lion].
+The compilers provided by Xcode only support [https://en.wikipedia.org/wiki/Thread-local_storage thread-local storage] if the OS supports it, which did not happen until [https://en.wikipedia.org/wiki/Mac_OS_X_Lion Mac OS X Lion].\\
 GCC and Clang can emulate thread-local storage even on versions of macOS that do not support it.
+
+=== Environment Variables ===
+To a limited extent, the behavior of compilers can also be controlled with [https://en.wikipedia.org/wiki/Environment_variable environment variables] instead of [https://en.wikipedia.org/wiki/Command-line_interface#Command-line_option switches].\\
+However, not all compilers support all environment variables.
+
+||= Variable =||= Xcode Support =||= Clang Support =||= GCC Support =||
+|| CPATH || Xcode 4.3 for Clang\\Apple clang version 3.1 (tags/Apple/clang-318.0.45 (based on LLVM 3.1svn);\\all GCC versions || all available from MacPorts || all available from MacPorts ||
+|| LIBRARY_PATH || Xcode 4.4 for Clang\\Apple clang version 4.0 (tags/Apple/clang-421.0.57) (based on LLVM 3.1svn);\\all GCC versions || all available from MacPorts || all available from MacPorts ||
+|| MACOSX_DEPLOYMENT_TARGET || all || all available from MacPorts || all available from MacPorts ||
+|| SDKROOT || OSX 10.9 (existence of /usr/lib/libxcselect.dylib) || all available from MacPorts || [https://github.com/macports/macports-ports/commit/dd197967ac1c9fb9b489ee4e347a2f5a859f9839 version 7], [https://github.com/macports/macports-ports/pull/6083 version 8], [https://github.com/macports/macports-ports/commit/1850136d289019f3b29a5b24d3ec8ef9b23913ee version 9+] ||
+|| DEVELOPER_DIR || OSX 10.9 (existence of /usr/lib/libxcselect.dylib) || N/A || N/A ||
+|| CC_PRINT_OPTIONS || all || all available from MacPorts || all available from MacPorts ||
+|| CC_PRINT_OPTIONS_FILE || all || all available from MacPorts || all available from MacPorts ||
+
+See CompilerEnvironmentVariables for descriptions of the environment variables.
 
 === C++ Standard Library ===
 There are three possible [https://en.wikipedia.org/wiki/C%2B%2B_Standard_Library C++ standard libraries] on macOS.
-------8<------8<------8<------8<------8<------8<------8<------8<--------

--
Page URL: <https://trac.macports.org/wiki/CompilerSelection>
MacPorts <https://www.macports.org/>
Ports system for macOS

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


More information about the macports-changes mailing list