[Lldb-commits] [lldb] [lldb] Pass fortran compiler to lldb test suite. (PR #208298)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Thu Jul 9 02:53:01 PDT 2026


================
@@ -540,6 +554,20 @@ ifeq ($(CC_TYPE), clang)
 	CXXFLAGS += --driver-mode=g++
 endif
 
+#----------------------------------------------------------------------
+# Check if we have any Fortran source files
+#----------------------------------------------------------------------
+ifneq "$(strip $(F_SOURCES))" ""
+	ifeq "$(FC)" ""
+    $(error "No Fortran compiler found for fortran tests")
+  endif
+  OBJECTS +=$(strip $(F_SOURCES:.f90=.o))
+	# Override the linker with the Fortran compiler, LDC is not needed 
+	# currently so it is set to any
----------------
DavidSpickett wrote:

Comments are sentences - https://llvm.org/docs/CodingStandards.html#commenting, so full stop on the end here.

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


More information about the lldb-commits mailing list