summaryrefslogtreecommitdiff
path: root/xmake/modules
diff options
context:
space:
mode:
authorOpportunityLiu <[email protected]>2019-07-11 13:49:22 +0800
committerOpportunityLiu <[email protected]>2019-07-11 13:49:22 +0800
commit695a634afebe0855d6aea84001dba8a0faffbbf4 (patch)
tree45ff3ac31fa6b5b7e730ec5900ed70faca8549a5 /xmake/modules
parent784f2fb015f748cd381fb5a8a2098d7a7255ac74 (diff)
fix regex
Diffstat (limited to 'xmake/modules')
-rw-r--r--xmake/modules/detect/sdks/find_cuda.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/detect/sdks/find_cuda.lua b/xmake/modules/detect/sdks/find_cuda.lua
index 87ac6f3a1..54b8f21cf 100644
--- a/xmake/modules/detect/sdks/find_cuda.lua
+++ b/xmake/modules/detect/sdks/find_cuda.lua
@@ -40,7 +40,7 @@ function _find_sdkdir()
table.insert(pathes, "/usr/local/cuda/bin")
table.insert(pathes, "/usr/local/cuda*/bin")
end
- table.join2(pathes, path.splitenv(os.getenv("PATH")))
+ table.insert(pathes, "$(env PATH)")
-- attempt to find nvcc
local nvcc = find_file(os.host() == "windows" and "nvcc.exe" or "nvcc", pathes)