mirror of https://github.com/aminya/setup-cpp
fix: do not setup cpath on windows
This commit is contained in:
parent
2c34e1795b
commit
770429f88c
|
@ -258,7 +258,10 @@ export async function activateLLVM(directory: string, version: string) {
|
||||||
core.exportVariable("LD_LIBRARY_PATH", `${lib}${path.delimiter}${ld}`)
|
core.exportVariable("LD_LIBRARY_PATH", `${lib}${path.delimiter}${ld}`)
|
||||||
core.exportVariable("DYLD_LIBRARY_PATH", `${lib}${path.delimiter}${dyld}`)
|
core.exportVariable("DYLD_LIBRARY_PATH", `${lib}${path.delimiter}${dyld}`)
|
||||||
|
|
||||||
|
if (process.platform !== "win32") {
|
||||||
|
// https://github.com/aminya/setup-cpp/issues/6
|
||||||
core.exportVariable("CPATH", `${directory}/lib/clang/${llvmMajor}/include`)
|
core.exportVariable("CPATH", `${directory}/lib/clang/${llvmMajor}/include`)
|
||||||
|
}
|
||||||
|
|
||||||
core.exportVariable("LDFLAGS", `-L${directory}/lib`)
|
core.exportVariable("LDFLAGS", `-L${directory}/lib`)
|
||||||
core.exportVariable("CPPFLAGS", `-I${directory}/include`)
|
core.exportVariable("CPPFLAGS", `-I${directory}/include`)
|
||||||
|
|
Loading…
Reference in New Issue