We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1786f4 commit 304f58bCopy full SHA for 304f58b
swift/tools/tracing-config.lua
@@ -43,7 +43,7 @@ function RegisterExtractorPack(id)
43
end
44
-- derive -resource-dir based on the compilerPath
45
-- e.g.: /usr/bin/swift-frontend -> /usr/bin/../lib/swift
46
- local last_slash_index = string.find(compilerPath, "/swift%-frontend")
+ local last_slash_index = string.find(compilerPath, "/[^/]*$")
47
local compiler_dir = string.sub(compilerPath, 1, last_slash_index)
48
local resource_dir = compiler_dir .. '../lib/swift'
49
table.insert(args, '-resource-dir')
0 commit comments