Skip to content

Commit 71ba636

Browse files
committed
fix: correct sourcing of emsdk_env.sh in Makefile for WASM build with POSIX .
1 parent 6143d5f commit 71ba636

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 && source ./emsdk_env.sh
161+
cd $(EMSDK) && ./emsdk install latest && ./emsdk activate latest && . ./emsdk_env.sh
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-
source ./$(EMSDK)/emsdk_env.sh && cd $(SQLITE_SRC) && ./configure --enable-all
166+
. ./$(EMSDK)/emsdk_env.sh && cd $(SQLITE_SRC) && ./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)