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/icc/load.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/icc/load.lua')
| -rw-r--r-- | xmake/toolchains/icc/load.lua | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/xmake/toolchains/icc/load.lua b/xmake/toolchains/icc/load.lua index b3dbf589f..0792869e8 100644 --- a/xmake/toolchains/icc/load.lua +++ b/xmake/toolchains/icc/load.lua @@ -103,18 +103,6 @@ function _load_intel_on_linux(toolchain) toolchain:add("ldflags", march) toolchain:add("shflags", march) end - - -- add includedirs and linkdirs - 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 -- main entry |
