mirror of https://github.com/aminya/setup-cpp
fix: use double quote for LDFLAGS/CPPFLAGS
This commit is contained in:
parent
e9ad632584
commit
3526010570
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -310,8 +310,8 @@ export async function activateLLVM(directory: string, versionGiven: string) {
|
||||||
addEnv("DYLD_LIBRARY_PATH", `${lib}${path.delimiter}${dyld}`),
|
addEnv("DYLD_LIBRARY_PATH", `${lib}${path.delimiter}${dyld}`),
|
||||||
|
|
||||||
// compiler flags
|
// compiler flags
|
||||||
addEnv("LDFLAGS", `-L'${directory}/lib'`),
|
addEnv("LDFLAGS", `-L"${directory}/lib"`),
|
||||||
addEnv("CPPFLAGS", `-I'${directory}/include'`),
|
addEnv("CPPFLAGS", `-I"${directory}/include"`),
|
||||||
|
|
||||||
// compiler paths
|
// compiler paths
|
||||||
addEnv("CC", addBinExtension(`${directory}/bin/clang`)),
|
addEnv("CC", addBinExtension(`${directory}/bin/clang`)),
|
||||||
|
|
|
@ -54,8 +54,8 @@ async function addEnvSystem(name: string, valGiven: string | undefined) {
|
||||||
switch (process.platform) {
|
switch (process.platform) {
|
||||||
case "win32": {
|
case "win32": {
|
||||||
// We do not use `execa.sync(`setx PATH "${path};%PATH%"`)` because of its character limit
|
// We do not use `execa.sync(`setx PATH "${path};%PATH%"`)` because of its character limit
|
||||||
await execPowershell(`[Environment]::SetEnvironmentVariable("${name}", "${val}", "User")`)
|
await execPowershell(`[Environment]::SetEnvironmentVariable('${name}', '${val}', "User")`)
|
||||||
info(`${name}="${val}" was set in the environment.`)
|
info(`${name}='${val}' was set in the environment.`)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
case "linux":
|
case "linux":
|
||||||
|
|
Loading…
Reference in New Issue