diff options
Diffstat (limited to 'xmake/toolchains/gcc/xmake.lua')
| -rw-r--r-- | xmake/toolchains/gcc/xmake.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/toolchains/gcc/xmake.lua b/xmake/toolchains/gcc/xmake.lua index ab12fd13a..8a4a53bb5 100644 --- a/xmake/toolchains/gcc/xmake.lua +++ b/xmake/toolchains/gcc/xmake.lua @@ -50,9 +50,9 @@ toolchain("gcc") -- 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("gcc") 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) |
