Files
termux-packages/packages/flang/0003-fix-missing-CHECK_MSG-macro.patch
termux-pacman-bot 3162c67737 bump(flang): 18.1.8 to 19.1.1
Co-Authored-By: Lucy Phipps <landfillbaby69@gmail.com>
2024-10-02 22:39:27 +00:00

12 lines
417 B
Diff

--- a/flang/include/flang/Common/idioms.h
+++ b/flang/include/flang/Common/idioms.h
@@ -89,6 +89,8 @@
#define CHECK(x) ((x) || (DIE("CHECK(" #x ") failed"), false))
// Same as above, but with a custom error message.
#define CHECK_MSG(x, y) ((x) || (DIE("CHECK(" #x ") failed: " #y), false))
+#elif !defined(CHECK_MSG)
+#define CHECK_MSG(x, y) CHECK(x)
#endif
// User-defined type traits that default to false: