diff options
| author | ruki <[email protected]> | 2015-06-11 17:16:30 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-06-11 17:16:30 +0800 |
| commit | 1e8ddd3262352cc199b51493501a4ce5f48e69d2 (patch) | |
| tree | 1d465819431b197a7b6410636716dc17630f7b7e /xmake/scripts/tools/gcc.lua | |
| parent | 34850cd997a6e3b29388b126675feb8c5755404e (diff) | |
add flags for platform
Diffstat (limited to 'xmake/scripts/tools/gcc.lua')
| -rw-r--r-- | xmake/scripts/tools/gcc.lua | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/xmake/scripts/tools/gcc.lua b/xmake/scripts/tools/gcc.lua index b74081222..cc94a1ab5 100644 --- a/xmake/scripts/tools/gcc.lua +++ b/xmake/scripts/tools/gcc.lua @@ -93,18 +93,6 @@ function gcc.init(self, name) self.shflags = { flags_arch, "-shared -Wl,-soname" } end - -- append the xcode sdk directory if exists - local plat = config.get("plat") - if plat and (plat == "macosx" or plat == "iphoneos" or plat == "iphonesimulator") then - local xcode_sdkdir = platform.get("xcode_sdkdir") - if xcode_sdkdir then - table.join2(self.cxflags, "-isysroot " .. xcode_sdkdir) - table.join2(self.mxflags, "-isysroot " .. xcode_sdkdir) - table.join2(self.ldflags, "-isysroot " .. xcode_sdkdir) - table.join2(self.shflags, "-isysroot " .. xcode_sdkdir) - end - end - -- suppress warning for the ccache bug if name:find("clang") and config.get("ccache") then table.join2(self.cxflags, "-Qunused-arguments") |
