[PATCH] D20670: [tsan] On OS X, build Go runtime with -mmacosx-version-min

Kuba Brecka via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 3 05:07:15 PDT 2016


kubabrecka added a comment.

-mmacosx-version-min needs to be passed to both compiler and linker.  The compiler uses it to make sure it doesn’t use functions/symbols that are not available on older OS versions (and error out or warn). Linker needs this to weak-link appropriately (and strong-link whatever is already available in the specified OS version).  When it’s not specified, it uses your system version, which is almost certainly not what you want -- your library will then only work on your system and higher.

There are cases where you’ll be lucky (e.g. if you only use functions/symbols that are available everywhere) even without -mmacosx-version-min.


http://reviews.llvm.org/D20670





More information about the llvm-commits mailing list