[llvm] [orc-rt] Implement Windows target triple detection (PR #224514)

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 20 06:06:18 PDT 2026


================
@@ -115,6 +129,16 @@ set(ORC_RT_LOG_BACKEND "none" CACHE STRING
 set(orc_rt_log_backends none printf os_log)
 set_property(CACHE ORC_RT_LOG_BACKEND PROPERTY STRINGS ${orc_rt_log_backends})
 
+# enable project wide windows settings.
+# Mostly to avoid min and max conflicts
+if(WIN32)
+  add_compile_definitions(
+    NOMINMAX
+    WIN32_LEAN_AND_MEAN
+  )
+endif()
----------------
lhames wrote:

seems reasonable, but shouldn't be in the middle of the logging options. :)

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


More information about the llvm-commits mailing list