We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed2dfcf commit 916e4baCopy full SHA for 916e4ba
mlir/include/mlir/Config/mlir-config.h.cmake
@@ -8,6 +8,13 @@
8
9
/* This file enumerates variables from the MLIR configuration so that they
10
can be in exported headers and won't override package specific directives.
11
+ Defining the variables here is preferable over specifying them in CMake files
12
+ via `target_compile_definitions` because it is easier to ensure that they are
13
+ defined consistently across all targets: They are guaranteed to be 0/1
14
+ variables thanks to #cmakedefine01, so we can test with `#if` and find
15
+ missing definitions or includes with `-Wundef`. With `#ifdef`, these mistakes
16
+ can go unnoticed.
17
+
18
This is a C header that can be included in the mlir-c headers. */
19
20
#ifndef MLIR_CONFIG_H
0 commit comments