summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/core/base/os.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/base/os.lua b/xmake/core/base/os.lua
index 0ec557dcb..ff0b494e8 100644
--- a/xmake/core/base/os.lua
+++ b/xmake/core/base/os.lua
@@ -232,7 +232,7 @@ function os.args(argv)
arg = arg:trim()
if #arg > 0 then
arg = arg:gsub("([\"\\])", "\\%1")
- if arg:find("%s") then
+ if arg:find("[%s%(%)]") then
if args then
args = args .. " \"" .. arg .. "\""
else