summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNats-ji <[email protected]>2022-09-15 18:47:56 +0800
committerNats-ji <[email protected]>2022-09-15 18:47:56 +0800
commit30e0107f60793c93b57e9ae0ebd5b5d15814cc17 (patch)
treef64af7e510600f8c51455a3288bf02a26fa6ff5c
parentbd01666fbe930830b83188146f5849f23c86986d (diff)
revert changes in xmake-io/xmake#1508
(xmake-io/xmake#2821)
-rw-r--r--xmake/plugins/project/clang/compile_commands.lua4
1 files changed, 0 insertions, 4 deletions
diff --git a/xmake/plugins/project/clang/compile_commands.lua b/xmake/plugins/project/clang/compile_commands.lua
index 2b8db7e2e..b66e6e7f9 100644
--- a/xmake/plugins/project/clang/compile_commands.lua
+++ b/xmake/plugins/project/clang/compile_commands.lua
@@ -63,10 +63,6 @@ function _translate_arguments(arguments)
arg = arg:gsub("[%-/]external:I", "-I")
elseif arg:find("[%-/]external:W") or arg:find("[%-/]experimental:external") then
arg = nil
- -- escape '"' for the defines
- -- https://github.com/xmake-io/xmake/issues/1506
- elseif arg:find("^-D") then
- arg = arg:gsub("\"", "\\\"")
end
-- @see use msvc-style flags for msvc to support language-server better
-- https://github.com/xmake-io/xmake/issues/1284