diff options
| author | ruki <[email protected]> | 2024-03-28 00:57:01 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-03-28 00:57:01 +0800 |
| commit | 5f775171a695ae6608358a9afd8525da6651eb02 (patch) | |
| tree | 96474451c5c2ec379bea2bf942d240252bb596b9 /xmake/modules/private/utils/batchcmds.lua | |
| parent | dfa1b3d3b8681f6cba252edc900e6542d15c46e6 (diff) | |
fix path for pch
Diffstat (limited to 'xmake/modules/private/utils/batchcmds.lua')
| -rw-r--r-- | xmake/modules/private/utils/batchcmds.lua | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/xmake/modules/private/utils/batchcmds.lua b/xmake/modules/private/utils/batchcmds.lua index a954261d9..6c3742b9f 100644 --- a/xmake/modules/private/utils/batchcmds.lua +++ b/xmake/modules/private/utils/batchcmds.lua @@ -284,7 +284,12 @@ function batchcmds:compilev(argv, opt) end -- we need to translate path for the project generator - local patterns = {"^([%-/]external:I)(.*)", "^([%-/]I)(.*)", "^([%-/]Fp)(.*)", "^([%-/]Fd)(.*)"} + local patterns = {"^([%-/]external:I)(.*)", + "^([%-/]I)(.*)", + "^([%-/]Fp)(.*)", + "^([%-/]Fd)(.*)", + "^([%-/]Yu)(.*)", + "^([%-/]FI)(.*)"} for idx, item in ipairs(argv) do if type(item) == "string" then for _, pattern in ipairs(patterns) do @@ -322,7 +327,9 @@ function batchcmds:link(objectfiles, targetfile, opt) local program, argv = linker_inst:linkargv(objectfiles, path(targetfile), opt) -- we need to translate path for the project generator - local patterns = {"^([%-/]L)(.*)", "^([%-/]F)(.*)", "^([%-/]libpath:)(.*)"} + local patterns = {"^([%-/]L)(.*)", + "^([%-/]F)(.*)", + "^([%-/]libpath:)(.*)"} for idx, item in ipairs(argv) do if type(item) == "string" then for _, pattern in ipairs(patterns) do |
