================
@@ -267,6 +267,24 @@ def parseOptionsAndInitTestdirs():
                     configuration.compiler = candidate
                     break
 
+    if args.fortran_compiler:
+        configuration.fortran_compiler = os.path.abspath(args.fortran_compiler)
+        if not is_exe(configuration.fortran_compiler):
+            configuration.fortran_compiler = which(args.fortran_compiler)
+        if not is_exe(configuration.fortran_compiler):
+            logging.error(
+                '"%s" is not a valid Fortran compiler executable; aborting...',
+                args.fortran_compiler,
+            )
+            sys.exit(-1)
+    else:
+        # If no Fortran compiler was explicitly specified, search for local 
fallbacks.
+        candidateFortranCompilers = ["flang-new", "flang", "gfortran"]
----------------
DavidSpickett wrote:

Yes, put flang-new later. But otherwise I think it's fine.

I was going to ask if the result of this discovery is printed anywhere but of 
course the compiler path is printed in every test log, so that part is covered.

https://github.com/llvm/llvm-project/pull/208298
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to