Skip to content

Commit 3eb08b1

Browse files
committed
fix: update emsdk_env.sh sourcing in Makefile for WASM build process
1 parent 71ba636 commit 3eb08b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,12 +158,12 @@ else
158158
EMSDK := $(BUILD_WASM)/emsdk
159159
$(EMSDK):
160160
git clone https://github.com/emscripten-core/emsdk.git $(EMSDK)
161-
cd $(EMSDK) && ./emsdk install latest && ./emsdk activate latest && . ./emsdk_env.sh
161+
cd $(EMSDK) && ./emsdk install latest && ./emsdk activate latest
162162

163163
SQLITE_SRC := $(BUILD_WASM)/sqlite
164164
$(SQLITE_SRC): $(EMSDK)
165165
git clone --branch version-$(SQLITE_VERSION) --depth 1 https://github.com/sqlite/sqlite.git $(SQLITE_SRC)
166-
. ./$(EMSDK)/emsdk_env.sh && cd $(SQLITE_SRC) && ./configure --enable-all
166+
cd $(EMSDK) && . ./emsdk_env.sh && cd ../sqlite && ./configure --enable-all
167167

168168
$(TARGET): $(SQLITE_SRC) $(SRC_FILES)
169169
cd $(SQLITE_SRC)/ext/wasm && $(MAKE) dist sqlite3_wasm_extra_init.c=../../../../../src/wasm.c

0 commit comments

Comments
 (0)