fix: quote CPPFLAGS and LDFLAGS instead of escaping

This commit is contained in:
Amin Yahyaabadi 2022-05-11 17:21:28 -07:00
parent 3eb3fc16a7
commit 1476cdd202
3 changed files with 4 additions and 4 deletions

2
dist/setup_cpp.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -317,8 +317,8 @@ export async function activateLLVM(directory: string, versionGiven: string) {
}
}
addEnv("LDFLAGS", `-L${directory}/lib`, true)
addEnv("CPPFLAGS", `-I${directory}/include`, true)
addEnv("LDFLAGS", `-L"${directory}/lib"`)
addEnv("CPPFLAGS", `-I"${directory}/include"`)
addEnv("CC", `${directory}/bin/clang`)
addEnv("CXX", `${directory}/bin/clang++`)