Created
February 17, 2018 09:49
-
-
Save jfo/ff98d4d8e8bab301ba4c740f9d0a1b65 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/CMakeLists.txt b/CMakeLists.txt | |
index c23c0b6e..73b26578 100644 | |
--- a/CMakeLists.txt | |
+++ b/CMakeLists.txt | |
@@ -693,6 +693,7 @@ target_link_libraries(zig LINK_PUBLIC | |
${CLANG_LIBRARIES} | |
${LLD_LIBRARIES} | |
${LLVM_LIBRARIES} | |
+ xml2 | |
${CMAKE_THREAD_LIBS_INIT} | |
) | |
if(ZIG_DIA_GUIDS_LIB) | |
diff --git a/src/target.cpp b/src/target.cpp | |
index 69b1d6a8..fcbdda52 100644 | |
--- a/src/target.cpp | |
+++ b/src/target.cpp | |
@@ -185,6 +185,7 @@ static const ZigLLVM_EnvironmentType environ_list[] = { | |
ZigLLVM_CoreCLR, | |
ZigLLVM_OpenCL, | |
ZigLLVM_Simulator, | |
+ ZigLLVM_WASM, | |
}; | |
static const ZigLLVM_ObjectFormatType oformat_list[] = { | |
diff --git a/src/zig_llvm.h b/src/zig_llvm.h | |
index ac2fe01b..d5fb7256 100644 | |
--- a/src/zig_llvm.h | |
+++ b/src/zig_llvm.h | |
@@ -370,6 +370,7 @@ enum ZigLLVM_EnvironmentType { | |
ZigLLVM_CoreCLR, | |
ZigLLVM_OpenCL, | |
ZigLLVM_Simulator, | |
+ ZigLLVM_WASM, | |
ZigLLVM_LastEnvironmentType = ZigLLVM_Simulator | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment