diff options
| author | Ray <[email protected]> | 2021-10-20 11:40:46 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2021-10-20 11:40:46 +0200 |
| commit | fba117478d410dc9f677d0e5f2c1a8f87c7c6aab (patch) | |
| tree | 35974a3ace0dc5190e4fa0ba115c2443c626a112 /examples/Makefile.Web | |
| parent | ae7127232d720e1d8584ea0266eae98d5a543133 (diff) | |
| download | raylib-fba117478d410dc9f677d0e5f2c1a8f87c7c6aab.tar.gz raylib-fba117478d410dc9f677d0e5f2c1a8f87c7c6aab.zip | |
Update Makefile.Web
Diffstat (limited to 'examples/Makefile.Web')
| -rw-r--r-- | examples/Makefile.Web | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/Makefile.Web b/examples/Makefile.Web index b9e00ea5..d083b34e 100644 --- a/examples/Makefile.Web +++ b/examples/Makefile.Web @@ -599,6 +599,7 @@ core/core_vr_simulator: core/core_vr_simulator.c --preload-file core/resources/distortion100.fs@resources/distortion100.fs # NOTE: To use multi-threading raylib must be compiled with multi-theading support (-s USE_PTHREADS=1) +# WARNING: For security reasons multi-threading is not supported on browsers, it requires cross-origin isolation (Oct.2021) core/core_loading_thread: core/core_loading_thread.c $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) -s USE_PTHREADS=1 @@ -1005,21 +1006,20 @@ audio/audio_multichannel_sound: audio/audio_multichannel_sound.c --preload-file audio/resources/target.ogg@resources/target.ogg # Compile PHYSICS examples -# NOTE: To use multi-threading raylib must be compiled with multi-theading support (-s USE_PTHREADS=1) physics/physics_demo: physics/physics_demo.c - $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -static -lpthread -D$(PLATFORM) -s USE_PTHREADS=1 + $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) -DPHYSAC_AVOID_TIMMING_SYSTEM physics/physics_friction: physics/physics_friction.c - $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -static -lpthread -D$(PLATFORM) -s USE_PTHREADS=1 + $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) -DPHYSAC_AVOID_TIMMING_SYSTEM physics/physics_movement: physics/physics_movement.c - $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -static -lpthread -D$(PLATFORM) -s USE_PTHREADS=1 + $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) -DPHYSAC_AVOID_TIMMING_SYSTEM physics/physics_restitution: physics/physics_restitution.c - $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -static -lpthread -D$(PLATFORM) -s USE_PTHREADS=1 + $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) -DPHYSAC_AVOID_TIMMING_SYSTEM physics/physics_shatter: physics/physics_shatter.c - $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -static -lpthread -D$(PLATFORM) -s USE_PTHREADS=1 + $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) -DPHYSAC_AVOID_TIMMING_SYSTEM # Clean everything |
