fix emar and emranlib usage for wasm builds
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
dc1cc5d044
commit
4f3fdd239e
2 changed files with 13 additions and 1 deletions
12
deps/Makefile
vendored
12
deps/Makefile
vendored
|
|
@ -134,6 +134,18 @@ endif
|
|||
CMAKE += -DCMAKE_OSX_SYSROOT=$(shell xcrun --sdk macosx --show-sdk-path)
|
||||
endif
|
||||
|
||||
# fix emar and emranlib usage
|
||||
ifeq ($(WASM),true)
|
||||
CMAKE_AR = $(shell which $(AR))
|
||||
CMAKE_RANLIB = $(shell which $(RANLIB))
|
||||
CMAKE += -DCMAKE_AR=$(CMAKE_AR)
|
||||
CMAKE += -DCMAKE_C_COMPILER_AR=$(CMAKE_AR)
|
||||
CMAKE += -DCMAKE_CXX_COMPILER_AR=$(CMAKE_AR)
|
||||
CMAKE += -DCMAKE_RANLIB=$(CMAKE_RANLIB)
|
||||
CMAKE += -DCMAKE_C_COMPILER_RANLIB=$(CMAKE_RANLIB)
|
||||
CMAKE += -DCMAKE_CXX_COMPILER_RANLIB=$(CMAKE_RANLIB)
|
||||
endif
|
||||
|
||||
# fix cross-compilation for windows
|
||||
ifeq ($(WINDOWS),true)
|
||||
CMAKE += -G 'Unix Makefiles'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue