feat: add basic apple-clang support

f
This commit is contained in:
Amin Yahyaabadi 2021-12-07 03:01:13 -06:00
parent dd4a80b89b
commit a24d9e9e9a
3 changed files with 9 additions and 2 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

@ -171,6 +171,13 @@ export async function main(args: string[]): Promise<number> {
await setupMSVC(getVersion("msvc", version) as string, join(setupCppDir, "msvc"), arch) await setupMSVC(getVersion("msvc", version) as string, join(setupCppDir, "msvc"), arch)
break break
} }
case "appleclang":
case "applellvm": {
core.warning("Assuming apple-clang is already installed")
core.exportVariable("CC", "clang")
core.exportVariable("CXX", "clang++")
break
}
default: { default: {
errorMessages.push(`Unsupported compiler ${compiler}`) errorMessages.push(`Unsupported compiler ${compiler}`)
} }