[clang] [openmp] [Libomp] Place generated OpenMP headers into build resource directory (PR #88007)

Shilei Tian via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 8 13:23:50 PDT 2024


================
@@ -16,4 +16,12 @@ typedef unsigned __INTPTR_TYPE__ uintptr_t;
 #error Every target should have __INTPTR_TYPE__
 #endif
 
+#ifdef __INTPTR_MAX__
+#define  INTPTR_MAX    __INTPTR_MAX__
+#endif
+
+#ifdef __UINTPTR_MAX__
+#define UINTPTR_MAX   __UINTPTR_MAX__
+#endif
+
----------------
shiltian wrote:

This header is useful when invoking front end directly such that we don't need to pass things like `-internal-isystem` which usually are added by compiler driver.

https://github.com/llvm/llvm-project/pull/88007


More information about the cfe-commits mailing list