forked from gbdev/rgbds
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
diff --git a/Makefile b/Makefile | ||
index fc5b476..a76dbec 100644 | ||
--- a/Makefile | ||
+++ b/Makefile | ||
@@ -18,6 +18,26 @@ ifeq ($(strip $(shell which rm)),) | ||
filesize = powershell Write-Output $$('def NB_PB$2_BLOCKS equ ' + [string] [int] (([IO.File]::ReadAllBytes('$1').Length + $2 - 1) / $2)) | ||
endif | ||
|
||
+$(info ${OS}) | ||
+$(info ${MAKE_HOST}) | ||
+$(info ${MAKE_VERSION}) | ||
+ifeq (${OS},Windows_NT) | ||
+ifneq ($(filter -j%,${MAKEFLAGS}),) | ||
+$(warning Parallel builds are broken on Windows.) | ||
+$(warning Please see https://github.com/ISSOtm/gb-starter-kit/issues/1#issuecomment-1793775226 for details.) | ||
+.NOTPARALLEL: # Delete this line if you want to have parallel builds regardless! | ||
+endif | ||
+# Make doesn't have a good way to compare versions, so I'm just going to assume that nobody installs | ||
+# a version from 2006 on their own ;) | ||
+else ifeq (${MAKE_VERSION},3.81) | ||
+ifneq ($(filter -j%,${MAKEFLAGS}),) | ||
+$(warning Parallel builds are broken with macOS' bundled version of Make.) | ||
+$(warning Please consider installing Make from Homebrew (`brew install make`, **make sure to read the caveats**).) | ||
+$(warning Please see https://github.com/ISSOtm/gb-starter-kit/issues/1#issuecomment-1793775226 for details.) | ||
+.NOTPARALLEL: # Delete this line if you want to have parallel builds regardless! | ||
+endif | ||
+endif | ||
+ | ||
RGBDS ?= # Shortcut if you want to use a local copy of RGBDS. | ||
RGBASM := ${RGBDS}rgbasm | ||
RGBLINK := ${RGBDS}rgblink |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters