Skip to content

Commit a4e2df0

Browse files
committed
fix: fix the quoting of CPPFLAGS and LDFLAGS for pwsh
1 parent c6a8977 commit a4e2df0

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

dist/setup_cpp.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/setup_cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/llvm/llvm.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,8 @@ export async function activateLLVM(directory: string, versionGiven: string) {
317317
}
318318
}
319319

320-
await addEnv("LDFLAGS", `-L"${directory}/lib"`)
321-
await addEnv("CPPFLAGS", `-I"${directory}/include"`)
320+
await addEnv("LDFLAGS", `-L'${directory}/lib'`)
321+
await addEnv("CPPFLAGS", `-I'${directory}/include'`)
322322

323323
await addEnv("CC", `${directory}/bin/clang`)
324324
await addEnv("CXX", `${directory}/bin/clang++`)

src/utils/env/addEnv.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ async function addEnvSystem(name: string, valGiven: string | undefined) {
5555
case "win32": {
5656
// We do not use `execa.sync(`setx PATH "${path};%PATH%"`)` because of its character limit
5757
await execPowershell(`[Environment]::SetEnvironmentVariable("${name}", "${val}", "User")`)
58-
info(`${name}="${val} was set in the environment."`)
58+
info(`${name}="${val}" was set in the environment.`)
5959
return
6060
}
6161
case "linux":
6262
case "darwin": {
6363
setupCppInProfile()
6464
appendFileSync(cpprc_path, `\nexport ${name}="${val}"\n`)
65-
info(`${name}="${val} was added to "${cpprc_path}"`)
65+
info(`${name}="${val}" was added to "${cpprc_path}`)
6666
return
6767
}
6868
default: {

0 commit comments

Comments
 (0)