Skip to content

Commit

Permalink
Merge pull request #29341 from JuliaLang/sf/llvm_wasm
Browse files Browse the repository at this point in the history
Add `LLVM_EXPERIMENTAL_TARGETS` and default it to `WebAssembly`
  • Loading branch information
vchuravy authored Sep 29, 2018
2 parents 75f798f + 6390fbf commit 201cba5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deps/llvm.mk
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ endif # LLVM_VER != svn

# Figure out which targets to build
LLVM_TARGETS := host;NVPTX;AMDGPU
LLVM_EXPERIMENTAL_TARGETS := WebAssembly

LLVM_CFLAGS :=
LLVM_CXXFLAGS :=
Expand All @@ -64,7 +65,7 @@ LLVM_CFLAGS += $(CFLAGS)
LLVM_CXXFLAGS += $(CXXFLAGS)
LLVM_CPPFLAGS += $(CPPFLAGS)
LLVM_LDFLAGS += $(LDFLAGS)
LLVM_CMAKE += -DLLVM_TARGETS_TO_BUILD:STRING="$(LLVM_TARGETS)" -DCMAKE_BUILD_TYPE="$(LLVM_CMAKE_BUILDTYPE)"
LLVM_CMAKE += -DLLVM_TARGETS_TO_BUILD:STRING="$(LLVM_TARGETS)" -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="$(LLVM_EXPERIMENTAL_TARGETS)" -DCMAKE_BUILD_TYPE="$(LLVM_CMAKE_BUILDTYPE)"
LLVM_CMAKE += -DLLVM_ENABLE_ZLIB=OFF -DLLVM_ENABLE_LIBXML2=OFF
ifeq ($(USE_POLLY_ACC),1)
LLVM_CMAKE += -DPOLLY_ENABLE_GPGPU_CODEGEN=ON
Expand Down

0 comments on commit 201cba5

Please sign in to comment.