summaryrefslogtreecommitdiff
path: root/xmake/modules/private/tools/gcc/parse_deps.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/private/tools/gcc/parse_deps.lua')
-rw-r--r--xmake/modules/private/tools/gcc/parse_deps.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/modules/private/tools/gcc/parse_deps.lua b/xmake/modules/private/tools/gcc/parse_deps.lua
index f3f4d76f4..0cb2ad4af 100644
--- a/xmake/modules/private/tools/gcc/parse_deps.lua
+++ b/xmake/modules/private/tools/gcc/parse_deps.lua
@@ -27,17 +27,17 @@ local space_placeholder = "\001"
-- normailize path of a dependecy
function _normailize_dep(dep, projectdir)
-
- -- tranlate dep path
if path.is_absolute(dep) then
dep = path.translate(dep)
else
dep = path.absolute(dep, projectdir)
end
-
- -- save it if belong to the project
if dep:startswith(projectdir) then
return path.relative(dep, projectdir)
+ else
+ -- we need also check header files outside project
+ -- https://github.com/xmake-io/xmake/issues/1154
+ return dep
end
end