================
@@ -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"]
----------------
tarunprabhu wrote:

This is really nit-picky: The name of the Flang executable has changed to being 
just "flang" instead of "flang-new". The latter is fine as a fallback, but 
probably should appear after `flang`.

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