Skip to content

Commit a17a039

Browse files
committed
[ClangAstParser] Consolidates includes for Windows platforms
1 parent 578fe7d commit a17a039

3 files changed

Lines changed: 3 additions & 10 deletions

File tree

ClangAstParser/src/pt/up/fe/specs/clang/ClangAstFileResource.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,9 @@
1919

2020
public enum ClangAstFileResource implements Supplier<FileResourceProvider> {
2121

22-
LIBC_CXX_LLVM(ClangAstWebResource.LIBC_CXX_LLVM),
23-
LIBC_CXX_WIN32(ClangAstWebResource.LIBC_CXX_WIN32),
24-
LIBC_CXX_LINUX(ClangAstWebResource.LIBC_CXX_LINUX),
2522
LIBC_CXX_LINUX_COMPLETE(ClangAstWebResource.LIBC_CXX_LINUX_COMPLETE),
2623
LIBC_CXX_MACOS_COMPLETE(ClangAstWebResource.LIBC_CXX_MACOS_COMPLETE),
24+
LIBC_CXX_WIN32_COMPLETE(ClangAstWebResource.LIBC_CXX_WIN32_COMPLETE),
2725
OPENMP_INCLUDES(ClangAstWebResource.OPENMP_INCLUDES),
2826
CUDA_LIB(ClangAstWebResource.CUDA_LIB),
2927
WIN_EXE(ClangAstWebResource.WIN_EXE),

ClangAstParser/src/pt/up/fe/specs/clang/ClangAstWebResource.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,9 @@ public interface ClangAstWebResource {
2020
String ROOT_16_0_5 = "https://github.com/specs-feup/clava/releases/download/clang_ast_dumper_16.0.5/";
2121
String ROOT_12_0_7 = "https://github.com/specs-feup/clava/releases/download/clang_ast_dumper_v12.0.7.1/";
2222

23-
WebResourceProvider LIBC_CXX_LLVM = WebResourceProvider.newInstance(ROOT_16_0_5, "libc_cxx_llvm.zip", "v16.0.5");
24-
WebResourceProvider LIBC_CXX_WIN32 = WebResourceProvider.newInstance(ROOT_16_0_5, "libc_cxx_win32.zip", "v16.0.5");
25-
WebResourceProvider LIBC_CXX_LINUX = WebResourceProvider.newInstance(ROOT_16_0_5, "libc_cxx_linux.zip", "v16.0.5");
2623
WebResourceProvider LIBC_CXX_LINUX_COMPLETE = WebResourceProvider.newInstance(ROOT_16_0_5, "libc_cxx_linux_complete.zip", "v16.0.5");
2724
WebResourceProvider LIBC_CXX_MACOS_COMPLETE = WebResourceProvider.newInstance(ROOT_16_0_5, "libc_cxx_macos_complete.zip", "v16.0.6");
25+
WebResourceProvider LIBC_CXX_WIN32_COMPLETE = WebResourceProvider.newInstance(ROOT_16_0_5, "libc_cxx_win32_complete.zip", "v16.0.5");
2826

2927
WebResourceProvider OPENMP_INCLUDES = WebResourceProvider.newInstance(ROOT_16_0_5, "openmp_includes.zip");
3028

ClangAstParser/src/pt/up/fe/specs/clang/ClangResources.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,7 @@ else if (SupportedPlatform.getCurrentPlatform().isLinux()) {
251251
}
252252
// Windows
253253
else if (SupportedPlatform.getCurrentPlatform().isWindows()) {
254-
var builtinResource = CLANG_AST_RESOURCES.get(ClangAstFileResource.LIBC_CXX_LLVM);
255-
includesZips.add(getVersionedResource(builtinResource, builtinResource.version()));
256-
257-
var windowsBuiltinResource = CLANG_AST_RESOURCES.get(ClangAstFileResource.LIBC_CXX_WIN32);
254+
var windowsBuiltinResource = CLANG_AST_RESOURCES.get(ClangAstFileResource.LIBC_CXX_WIN32_COMPLETE);
258255
includesZips.add(getVersionedResource(windowsBuiltinResource, windowsBuiltinResource.version()));
259256
} else {
260257
throw new RuntimeException("Unsupported platform: " + SupportedPlatform.getCurrentPlatform());

0 commit comments

Comments
 (0)