raysan5 / raylib-game-template

A small template to start your raylib game
zlib License
389 stars 91 forks source link

`PLATFORM=PLATFORM_WEB make` don't work on MacOS #8

Closed bart9h closed 1 year ago

bart9h commented 2 years ago

After brew install emscripten, brew install raylib, cloning this repo and running PLATFORM=PLATFORM_WEB make from the src/ dir gives this output:

% PLATFORM=PLATFORM_WEB make
/Applications/Xcode.app/Contents/Developer/usr/bin/make raylib_game
emcc -c raylib_game.c -o raylib_game.o -std=c99 -Wall -Wno-missing-braces -Wunused-result -D_DEFAULT_SOURCE -Os -I. -I../../raylib/src -I../../raylib/src/external -I../../raylib/src/extras -DPLATFORM_WEB
make[1]: emcc: No such file or directory
make[1]: *** [raylib_game.o] Error 1
make: *** [all] Error 2

which emcc finds it at /usr/local/bin, which is on the $PATH

bart9h commented 2 years ago

The problem is on lines 130 to 137 of Makefile. I overwrites the PATH, assuming a Windows environment.