Skip to content

Commit 304f58b

Browse files
Update swift/tools/tracing-config.lua
Co-authored-by: Paolo Tranquilli <[email protected]>
1 parent f1786f4 commit 304f58b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swift/tools/tracing-config.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function RegisterExtractorPack(id)
4343
end
4444
-- derive -resource-dir based on the compilerPath
4545
-- e.g.: /usr/bin/swift-frontend -> /usr/bin/../lib/swift
46-
local last_slash_index = string.find(compilerPath, "/swift%-frontend")
46+
local last_slash_index = string.find(compilerPath, "/[^/]*$")
4747
local compiler_dir = string.sub(compilerPath, 1, last_slash_index)
4848
local resource_dir = compiler_dir .. '../lib/swift'
4949
table.insert(args, '-resource-dir')

0 commit comments

Comments
 (0)