diff options
| author | raysan5 <[email protected]> | 2021-09-10 19:01:09 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2021-09-10 19:01:09 +0200 |
| commit | b63c2619e3103b5643d82598eeff818f38957446 (patch) | |
| tree | fa29feea46a98e6ffd6b7a0bc7c8acc3821289c3 /src/Makefile | |
| parent | 40ec7a6236cec9befab2dcb22d3dce384d76291c (diff) | |
| download | raylib-b63c2619e3103b5643d82598eeff818f38957446.tar.gz raylib-b63c2619e3103b5643d82598eeff818f38957446.zip | |
Update Makefile for web compilation
Some flags are only for the linker, not the compiler
Diffstat (limited to 'src/Makefile')
| -rw-r--r-- | src/Makefile | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Makefile b/src/Makefile index a56ab1d3..4d98c66e 100644 --- a/src/Makefile +++ b/src/Makefile @@ -309,7 +309,7 @@ endif ifeq ($(PLATFORM),PLATFORM_WEB) # -Os # size optimization # -O2 # optimization level 2, if used, also set --memory-init-file 0 - # -s USE_GLFW=3 # Use glfw3 library (context/input management) + # -s USE_GLFW=3 # Use glfw3 library (context/input management) -> Only for linker! # -s ALLOW_MEMORY_GROWTH=1 # to allow memory resizing -> WARNING: Audio buffers could FAIL! # -s TOTAL_MEMORY=16777216 # to specify heap memory size (default = 16MB) # -s USE_PTHREADS=1 # multithreading support @@ -318,7 +318,6 @@ ifeq ($(PLATFORM),PLATFORM_WEB) # --profiling # include information for code profiling # --memory-init-file 0 # to avoid an external memory initialization code file (.mem) # --preload-file resources # specify a resources folder for data compilation - CFLAGS += -s USE_GLFW=3 ifeq ($(RAYLIB_BUILD_MODE),DEBUG) CFLAGS += -s ASSERTIONS=1 --profiling endif |
