diff options
| author | ruki <[email protected]> | 2015-06-01 10:03:16 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-06-01 10:09:10 +0800 |
| commit | 7381a36a64f50a6db22155ebce996351201b90cb (patch) | |
| tree | fea64527b0cf27c3d00691752ceca2a678546646 /xmake/scripts/platform/macosx/_macosx.lua | |
| parent | a32ad41a1812ad88043c0ecd0a09301267de9871 (diff) | |
add linker and make link command
Diffstat (limited to 'xmake/scripts/platform/macosx/_macosx.lua')
| -rw-r--r-- | xmake/scripts/platform/macosx/_macosx.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/scripts/platform/macosx/_macosx.lua b/xmake/scripts/platform/macosx/_macosx.lua index 85b2822a1..b23204224 100644 --- a/xmake/scripts/platform/macosx/_macosx.lua +++ b/xmake/scripts/platform/macosx/_macosx.lua @@ -51,6 +51,12 @@ function _macosx.make(configs) configs.compiler.mm = config.get("mm") or configs.compiler.cc configs.compiler.mxx = config.get("mxx") or configs.compiler.cxx + -- init the linker + configs.linker = {} + configs.linker.binary = config.get("ld") or "xcrun -sdk macosx clang++" + configs.linker.static = config.get("ar") or "xcrun -sdk macosx ar" + configs.linker.shared = config.get("ld") or "xcrun -sdk macosx clang++" + -- init xcode sdk directory configs.xcode_sdkdir = config.get("xcode_dir") .. "/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX" .. config.get("xcode_sdkver") .. ".sdk" end |
