From e95b95118f6e64d26319779e3303642550eb6f45 Mon Sep 17 00:00:00 2001 From: Aryeh Date: Sun, 27 Jun 2021 16:33:58 +1000 Subject: [PATCH] Updated README for custom macro definitions --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index fb69f4b..8b8867e 100644 --- a/README.md +++ b/README.md @@ -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: