diff options
author | Michael Brown | 2011-03-01 15:18:35 +0100 |
---|---|---|
committer | Michael Brown | 2011-03-01 15:18:35 +0100 |
commit | 3f13e3d5d2376c857d144da543c5ace12fc7c6fc (patch) | |
tree | 3e1065773862cbcda77c0f841eeb8a60ec8b7077 /src/include/compiler.h | |
parent | [autoboot] Use a custom error number for "nothing to boot" (diff) | |
download | ipxe-3f13e3d5d2376c857d144da543c5ace12fc7c6fc.tar.gz ipxe-3f13e3d5d2376c857d144da543c5ace12fc7c6fc.tar.xz ipxe-3f13e3d5d2376c857d144da543c5ace12fc7c6fc.zip |
[build] Allow DEBUG=... to affect builds of assembler source files
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/compiler.h')
-rw-r--r-- | src/include/compiler.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/include/compiler.h b/src/include/compiler.h index f1bd0e4d..feea5167 100644 --- a/src/include/compiler.h +++ b/src/include/compiler.h @@ -204,7 +204,6 @@ REQUEST_EXPANDED ( CONFIG_SYMBOL ); /** @defgroup dbg Debugging infrastructure * @{ */ -#ifndef ASSEMBLY /** @def DBG * @@ -255,6 +254,12 @@ REQUEST_EXPANDED ( CONFIG_SYMBOL ); */ #define DEBUG_SYMBOL PREFIX_OBJECT ( debug_ ) +#if DEBUG_SYMBOL == 0 +#define NDEBUG +#endif + +#ifndef ASSEMBLY + /** printf() for debugging * * This function exists so that the DBG() macros can expand to @@ -544,11 +549,6 @@ int __debug_disable; #define DBGCIO_PAUSE( ... ) DBGC_PAUSE_IF ( IO, ##__VA_ARGS__ ) #define DBGCIO_MORE( ... ) DBGC_MORE_IF ( IO, ##__VA_ARGS__ ) - -#if DEBUG_SYMBOL == 0 -#define NDEBUG -#endif - #endif /* ASSEMBLY */ /** @} */ |