Skip to content

Commit

Permalink
Merge pull request JuliaLang#32415 from JuliaLang/kf/wasmbuildmisc
Browse files Browse the repository at this point in the history
Two small build fixes under Emscripten
  • Loading branch information
Keno committed Jul 1, 2019
2 parents 00d8694 + 4671644 commit 98168bc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions deps/llvm.mk
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ LLVM_CPPFLAGS += -flto
LLVM_LDFLAGS += -flto
endif # LLVM_LTO

ifeq ($(fPIC),)
LLVM_CMAKE += -DLLVM_ENABLE_PIC=OFF
endif

ifeq ($(BUILD_CUSTOM_LIBCXX),1)
LLVM_LDFLAGS += -Wl,-rpath,$(build_libdir)
LLVM_CPPFLAGS += -I$(build_includedir)
Expand Down
5 changes: 4 additions & 1 deletion src/flisp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ FLAGS := -I$(LLTDIR) $(JCFLAGS) $(HFILEDIRS:%=-I%) \
-I$(LIBUV_INC) -I$(UTF8PROC_INC) -I$(build_includedir) $(LIBDIRS:%=-L%) \
-DLIBRARY_EXPORTS -DUTF8PROC_EXPORTS
ifneq ($(USEMSVC), 1)
FLAGS += -Wall -Wno-strict-aliasing -DUSE_COMPUTED_GOTO -fvisibility=hidden -Wpointer-arith -Wundef
ifneq ($(OS), emscripten)
FLAGS += -DUSE_COMPUTED_GOTO
endif
FLAGS += -Wall -Wno-strict-aliasing -fvisibility=hidden -Wpointer-arith -Wundef
FLAGS += -Wold-style-definition -Wstrict-prototypes -Wc++-compat
endif

Expand Down
2 changes: 1 addition & 1 deletion src/gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1856,7 +1856,7 @@ STATIC_INLINE int gc_mark_scan_obj32(jl_ptls_t ptls, jl_gc_mark_sp_t *sp, gc_mar
return 0;
}

#ifdef __GNUC__
#if defined(__GNUC__) && !defined(__OS_EMSCRIPTEN__)
# define gc_mark_laddr(name) (&&name)
# define gc_mark_jmp(ptr) goto *(ptr)
#else
Expand Down

0 comments on commit 98168bc

Please sign in to comment.