Merge pull request #9950 from nc-x/fix-nimsuggest-build

Fix nimsuggest build with clang on windows
This commit is contained in:
Andreas Rumpf 2018-12-13 09:02:55 +01:00 • committed by GitHub
commit 8dfe7c0963
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -780,7 +780,7 @@ proc linkViaResponseFile(conf: ConfigRef; cmd: string) =
let linkerArgs = conf.projectName & "_" & "linkerArgs.txt" let linkerArgs = conf.projectName & "_" & "linkerArgs.txt"
let args = cmd.substr(i) let args = cmd.substr(i)
# GCC's response files don't support backslashes. Junk. # GCC's response files don't support backslashes. Junk.
if conf.cCompiler == ccGcc: if conf.cCompiler == ccGcc or conf.cCompiler == ccCLang:
writeFile(linkerArgs, args.replace('\\', '/')) writeFile(linkerArgs, args.replace('\\', '/'))
else: else:
writeFile(linkerArgs, args) writeFile(linkerArgs, args)