Skip to content

Commit

Permalink
Added "make debug" which builds with DEBUG_F flag (pyodide#1108)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hood Chatham authored Jan 12, 2021
1 parent 2266ccf commit 53e0a79
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ CC=emcc
CXX=em++
OPTFLAGS=-O2
CFLAGS=$(OPTFLAGS) -g -I$(PYTHONINCLUDE) -fPIC \
-Wno-warn-absolute-paths -Werror=int-conversion -Werror=incompatible-pointer-types
-Wno-warn-absolute-paths -Werror=int-conversion -Werror=incompatible-pointer-types \
$(EXTRA_CFLAGS)

LDFLAGS=\
-O2 \
Expand All @@ -38,7 +39,8 @@ LDFLAGS=\
-lstdc++ \
--memory-init-file 0 \
-s "BINARYEN_TRAP_MODE='clamp'" \
-s LZ4=1
-s LZ4=1 \
$(EXTRA_LDFLAGS)

all: check \
build/pyodide.asm.js \
Expand Down Expand Up @@ -204,3 +206,9 @@ check:

minimal :
PYODIDE_PACKAGES="micropip" make

debug :
EXTRA_CFLAGS="-D DEBUG_F" \
EXTRA_LDFLAGS="-s ASSERTIONS=2" \
PYODIDE_PACKAGES+="micropip,pyparsing,pytz,packaging,kiwisolver" \
make

0 comments on commit 53e0a79

Please sign in to comment.