Ok, looks good then<br><div class="gmail_quote"><div dir="ltr">On Sat, Nov 5, 2016 at 12:42 AM Michał Górny <<a href="mailto:mgorny@gentoo.org">mgorny@gentoo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">mgorny added inline comments.<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
================<br class="gmail_msg">
Comment at: include/llvm/Config/config.h.cmake:42<br class="gmail_msg">
 /* Define to 1 if you have the DIA SDK installed, and to 0 if you don't. */<br class="gmail_msg">
-#cmakedefine01 HAVE_DIA_SDK<br class="gmail_msg">
+#define HAVE_DIA_SDK ${LLVM_ENABLE_DIA_SDK}<br class="gmail_msg">
<br class="gmail_msg">
----------------<br class="gmail_msg">
zturner wrote:<br class="gmail_msg">
> What's the difference between `#cmakedefine01` and the syntax you've used here?<br class="gmail_msg">
1. `#cmakedefine01` converts any CMake bool to 0/1, mine relies on the 0/1 being set in CMake (it was already done like this).<br class="gmail_msg">
2. `#cmakedefine01` does not support different `#define` and CMake variable name (or at least doesn't mention it in the docs). So if I were to continue using `#cmakedefine01`, I'd either have to define additional `HAVE_DIA_SDK` var in CMake, or rename the `#define`.<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
<a href="https://reviews.llvm.org/D26255" rel="noreferrer" class="gmail_msg" target="_blank">https://reviews.llvm.org/D26255</a><br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
</blockquote></div>