Skip to content

Commit

Permalink
Revert "Makefile change for cross compiling. (raysan5#3176)"
Browse files Browse the repository at this point in the history
This reverts commit 70286c7.

Turns out this is not needed!
Can be done by running make like so:
```
make PLATFORM=PLATFORM_DESKTOP OS=Windows_NT CC=/llvm/bin/aarch64-w64-mingw32-gcc AR=/llvm/bin/aarch64-w64-mingw32-ar
```
  • Loading branch information
superxkooda committed Jul 16, 2023
1 parent 86f95d7 commit d2a10ff
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -308,17 +308,6 @@ ifeq ($(PLATFORM),PLATFORM_ANDROID)
AR = $(ANDROID_TOOLCHAIN)/bin/llvm-ar
endif

# This section is here to help handle cross compilation. eg build on Linux for Windows. If you are doing this, you better know what you are doing!
ifdef TARGET_OS
ifdef CROSS_CC
CC = ${CROSS_CC}
endif
ifdef CROSS_AR
AR = ${CROSS_AR}
endif
PLATFORM_OS = ${TARGET_OS}
endif

# Define compiler flags: CFLAGS
#------------------------------------------------------------------------------------------------
# -O1 defines optimization level
Expand Down

0 comments on commit d2a10ff

Please sign in to comment.