From 770429f88c1d89933221a85606fee606f0d5c44f Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Sun, 21 Nov 2021 11:03:08 -0600 Subject: [PATCH] fix: do not setup cpath on windows --- src/llvm/llvm.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/llvm/llvm.ts b/src/llvm/llvm.ts index 95a4bbd4..c6b8b992 100644 --- a/src/llvm/llvm.ts +++ b/src/llvm/llvm.ts @@ -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`)