diff options
| author | Jonathan Poelen <[email protected]> | 2020-11-09 01:44:36 +0100 |
|---|---|---|
| committer | Jonathan Poelen <[email protected]> | 2020-11-09 01:44:36 +0100 |
| commit | ebfe302398df1dbe74f214e06b0b45184e84bf2b (patch) | |
| tree | c09766ed86829d78de5c8578ea0b00b3df00f6ec /xmake/toolchains/gcc/xmake.lua | |
| parent | 6f58d347401697543a16d0a7f93cb5b401908fb0 (diff) | |
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.
Diffstat (limited to 'xmake/toolchains/gcc/xmake.lua')
| -rw-r--r-- | xmake/toolchains/gcc/xmake.lua | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/xmake/toolchains/gcc/xmake.lua b/xmake/toolchains/gcc/xmake.lua index 71887a374..9365fc38b 100644 --- a/xmake/toolchains/gcc/xmake.lua +++ b/xmake/toolchains/gcc/xmake.lua @@ -62,18 +62,4 @@ toolchain("gcc") toolchain:add("ldflags", march) toolchain:add("shflags", march) end - - -- add includedirs and linkdirs - 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) - end - end - for _, linkdir in ipairs({"/usr/local/lib", "/usr/lib"}) do - if os.isdir(linkdir) then - toolchain:add("linkdirs", linkdir) - end - end - end end) |
