diff options
| author | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-04-17 10:59:01 -0400 |
|---|---|---|
| committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-04-17 10:59:01 -0400 |
| commit | bfc6612cbf0460955deca28e9ad92d0ff8856668 (patch) | |
| tree | 0df5a4149a1ed0b99660ab42aad1e4a9492ca145 /rgbdscheck.asm | |
| parent | 22615cecc5b878ff92f882f34dd0f21e7d0489b9 (diff) | |
Use a separate build object to check the rgbds version
rgbdscheck.o is built without passing potentially non-backwards-compatible flags to rgbasm.
Resolves #710.
Diffstat (limited to 'rgbdscheck.asm')
| -rw-r--r-- | rgbdscheck.asm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/rgbdscheck.asm b/rgbdscheck.asm new file mode 100644 index 000000000..d5e2e5011 --- /dev/null +++ b/rgbdscheck.asm @@ -0,0 +1,12 @@ +; pokecrystal requires rgbds 0.4.0 or newer. +MAJOR EQU 0 +MINOR EQU 4 +PATCH EQU 0 + +if !DEF(__RGBDS_MAJOR__) || !DEF(__RGBDS_MINOR__) || !DEF(__RGBDS_PATCH__) + fail "pokecrystal requires rgbds {MAJOR}.{MINOR}.{PATCH} or newer." +elif (__RGBDS_MAJOR__ < MAJOR) || \ + (__RGBDS_MAJOR__ == MAJOR && __RGBDS_MINOR__ < MINOR) || \ + (__RGBDS_MAJOR__ == MAJOR && __RGBDS_MINOR__ == MINOR && __RGBDS_PATCH__ < PATCH) + fail "pokecrystal requires rgbds {MAJOR}.{MINOR}.{PATCH} or newer." +endc |
