[Lldb-commits] [lldb] [lldb] Pass fortran compiler to lldb test suite. (PR #208298)
Tarun Prabhu via lldb-commits
lldb-commits at lists.llvm.org
Thu Aug 27 07:24:10 PDT 2026
================
@@ -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
More information about the lldb-commits
mailing list