makefile doesn't care about emcc anymore
This commit is contained in:
dzaima 2023-10-21 14:46:41 +03:00
parent 55fcb453b0
commit 1ec48bb761
2 changed files with 18 additions and 27 deletions

View File

@ -106,12 +106,6 @@ endif
ifeq ($(origin OUTPUT),command line) ifeq ($(origin OUTPUT),command line)
i_OUTPUT := $(OUTPUT) i_OUTPUT := $(OUTPUT)
endif endif
ifeq ($(i_emcc),1)
i_OUTPUT_FOLDER := $(i_OUTPUT)
i_OUTPUT_BIN := $(i_OUTPUT_FOLDER)/BQN.js
else
i_OUTPUT_BIN := $(i_OUTPUT)
endif
ifeq ($(origin CC),command line) ifeq ($(origin CC),command line)
override i_CC := $(CC) override i_CC := $(CC)
custom = 1 custom = 1
@ -231,13 +225,13 @@ endif
# simple non-incremental builds # simple non-incremental builds
single-o3: single-o3:
$(i_CC) $(ALL_CC_FLAGS) -DSINGLE_BUILD -O3 -o ${i_OUTPUT_BIN} src/opt/single.c $(ALL_LD_FLAGS) $(i_CC) $(ALL_CC_FLAGS) -DSINGLE_BUILD -O3 -o ${i_OUTPUT} src/opt/single.c $(ALL_LD_FLAGS)
single-o3g: single-o3g:
$(i_CC) $(ALL_CC_FLAGS) -DSINGLE_BUILD -O3 -g -o ${i_OUTPUT_BIN} src/opt/single.c $(ALL_LD_FLAGS) $(i_CC) $(ALL_CC_FLAGS) -DSINGLE_BUILD -O3 -g -o ${i_OUTPUT} src/opt/single.c $(ALL_LD_FLAGS)
single-debug: single-debug:
$(i_CC) $(ALL_CC_FLAGS) -DSINGLE_BUILD -DDEBUG -g -o ${i_OUTPUT_BIN} src/opt/single.c $(ALL_LD_FLAGS) $(i_CC) $(ALL_CC_FLAGS) -DSINGLE_BUILD -DDEBUG -g -o ${i_OUTPUT} src/opt/single.c $(ALL_LD_FLAGS)
single-c: single-c:
$(i_CC) $(ALL_CC_FLAGS) -DSINGLE_BUILD -o ${i_OUTPUT_BIN} src/opt/single.c $(ALL_LD_FLAGS) $(i_CC) $(ALL_CC_FLAGS) -DSINGLE_BUILD -o ${i_OUTPUT} src/opt/single.c $(ALL_LD_FLAGS)
# actual build # actual build
run_incremental_0: run_incremental_0:
@ -278,14 +272,11 @@ endif
endif # run build endif # run build
run_incremental_1: ${bd}/BQN run_incremental_1: ${bd}/BQN
ifneq (${bd}/BQN,${i_OUTPUT_BIN}) ifneq (${bd}/BQN,${i_OUTPUT})
ifeq ($(i_emcc),1)
@cp -f ${bd}/BQN.wasm "${i_OUTPUT_FOLDER}/BQN.wasm"
endif
ifeq ($(WINDOWS),1) ifeq ($(WINDOWS),1)
@cp -f ${bd}/BQN.exe "${i_OUTPUT_BIN}" @cp -f ${bd}/BQN.exe "${i_OUTPUT}"
else else
@cp -f ${bd}/BQN "${i_OUTPUT_BIN}" @cp -f ${bd}/BQN "${i_OUTPUT}"
endif endif
endif endif
@echo ${postmsg} @echo ${postmsg}

View File

@ -34,7 +34,7 @@ u64 mm_heapAlloc;
// bytecodeOffset, // bytecodeOffset,
// variableCount, // number of variable slots needed // variableCount, // number of variable slots needed
// ( // optional extra info for namespace stuff // ( // optional extra info for namespace stuff
// [...variableIDs] // a number for each variable slot; indexes into nameList // [...variableIDs], // a number for each variable slot; indexes into nameList
// [...exportMask] // a unique number for each variable // [...exportMask] // a unique number for each variable
// )? // )?
// ]* // ]*