Skip to content

Commit

Permalink
fix: do not setup cpath on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Nov 21, 2021
1 parent 2c34e17 commit 770429f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/llvm/llvm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,10 @@ export async function activateLLVM(directory: string, version: string) {
core.exportVariable("LD_LIBRARY_PATH", `${lib}${path.delimiter}${ld}`)
core.exportVariable("DYLD_LIBRARY_PATH", `${lib}${path.delimiter}${dyld}`)

core.exportVariable("CPATH", `${directory}/lib/clang/${llvmMajor}/include`)
if (process.platform !== "win32") {
// https://github.com/aminya/setup-cpp/issues/6
core.exportVariable("CPATH", `${directory}/lib/clang/${llvmMajor}/include`)
}

core.exportVariable("LDFLAGS", `-L${directory}/lib`)
core.exportVariable("CPPFLAGS", `-I${directory}/include`)
Expand Down

0 comments on commit 770429f

Please sign in to comment.