Updated README for custom macro definitions

This commit is contained in:
Aryeh 2021-06-27 16:33:58 +10:00 committed by GitHub
parent 9724b7f7cd
commit e95b95118f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -91,6 +91,21 @@ $ make ARGS="--somearg"
> mingw32-make ARGS="--somearg"
```
### Specifying Custom Macro Definitions
You may also want to pass in your own macro definitions for certain configurations (such as setting log levels). You can pass in your definitions using the `MACRO_DEFS` flag:
#### macOS & Linux
```console
$ make MACRO_DEFS=MY_MACRO
```
#### Windows
```console
> mingw32-make MACRO_DEFS=MY_MACRO
```
### Specifying a Non-Default Compiler
If you want to use a compiler for your platform that isn't the default for your system (or potentially you would like to explicitly state it), you can make use of the system-implicit `CXX` variable like so: