diff options
| author | ruki <[email protected]> | 2020-06-20 00:43:53 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-06-19 22:23:22 +0800 |
| commit | 01dd21d4f3bccda1ff18ad1213b959feeaae37eb (patch) | |
| tree | 6e6d2203e3da29323d2919d32b80303e5e98d489 /xmake/toolchains/clang/xmake.lua | |
| parent | f5392149886b2083ec0d6db2adef3da405297fe8 (diff) | |
improve toolchain arch/plat
Diffstat (limited to 'xmake/toolchains/clang/xmake.lua')
| -rw-r--r-- | xmake/toolchains/clang/xmake.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/toolchains/clang/xmake.lua b/xmake/toolchains/clang/xmake.lua index 1319d9899..c616a4023 100644 --- a/xmake/toolchains/clang/xmake.lua +++ b/xmake/toolchains/clang/xmake.lua @@ -50,9 +50,9 @@ toolchain("clang") -- add march flags local march - if is_arch("x86_64", "x64") then + if toolchain:is_arch("x86_64", "x64") then march = "-m64" - elseif is_arch("i386", "x86") then + elseif toolchain:is_arch("i386", "x86") then march = "-m32" end if march then @@ -64,7 +64,7 @@ toolchain("clang") end -- add includedirs and linkdirs - if not is_plat("windows") and os.isdir("/usr") then + if not toolchain:is_plat("windows") and os.isdir("/usr") then for _, includedir in ipairs({"/usr/local/include", "/usr/include"}) do if os.isdir(includedir) then toolchain:add("includedirs", includedir) |
