From ebfe302398df1dbe74f214e06b0b45184e84bf2b Mon Sep 17 00:00:00 2001 From: Jonathan Poelen Date: Mon, 9 Nov 2020 01:44:36 +0100 Subject: toolchain: remove includedirs and linkdirs of system path /usr/{local/,}include and /usr/{local/,}lib are in the default configuration of the compilers and forcing them to be added (before any other includes) conflicts with the project files. --- xmake/toolchains/xcode/load_macosx.lua | 5 ----- 1 file changed, 5 deletions(-) (limited to 'xmake/toolchains/xcode/load_macosx.lua') diff --git a/xmake/toolchains/xcode/load_macosx.lua b/xmake/toolchains/xcode/load_macosx.lua index 1357b8c08..8b5241b45 100644 --- a/xmake/toolchains/xcode/load_macosx.lua +++ b/xmake/toolchains/xcode/load_macosx.lua @@ -47,11 +47,6 @@ function main(toolchain) if xcode_sdkdir then toolchain:add("cxflags", "-isysroot " .. xcode_sdkdir) toolchain:add("ldflags", "-isysroot " .. xcode_sdkdir) - else - toolchain:add("includedirs", "/usr/local/include") - toolchain:add("includedirs", "/usr/include") - toolchain:add("linkdirs", "/usr/local/lib") - toolchain:add("linkdirs", "/usr/lib") end toolchain:add("ldflags", "-stdlib=libc++") toolchain:add("syslinks", "z") -- cgit v1.3.1