[Mlir-commits] [mlir] a157a82 - [mlir] Avoid including <alloca.h> on DragonFly

Brad Smith llvmlistbot at llvm.org
Fri Oct 20 22:19:43 PDT 2023


Author: Brad Smith
Date: 2023-10-21T01:19:34-04:00
New Revision: a157a82b1e7a8d4be34cc862db4b42fa9db363d0

URL: https://github.com/llvm/llvm-project/commit/a157a82b1e7a8d4be34cc862db4b42fa9db363d0
DIFF: https://github.com/llvm/llvm-project/commit/a157a82b1e7a8d4be34cc862db4b42fa9db363d0.diff

LOG: [mlir] Avoid including <alloca.h> on DragonFly

Added: 
    

Modified: 
    mlir/lib/ExecutionEngine/CRunnerUtils.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/ExecutionEngine/CRunnerUtils.cpp b/mlir/lib/ExecutionEngine/CRunnerUtils.cpp
index 7f800e8ea96ff4f..c31ae3a1c7ce117 100644
--- a/mlir/lib/ExecutionEngine/CRunnerUtils.cpp
+++ b/mlir/lib/ExecutionEngine/CRunnerUtils.cpp
@@ -16,7 +16,8 @@
 #include "mlir/ExecutionEngine/Msan.h"
 
 #ifndef _WIN32
-#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || \
+    defined(__DragonFly__)
 #include <cstdlib>
 #else
 #include <alloca.h>


        


More information about the Mlir-commits mailing list