================
@@ -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:
I'm a bit suspicious of this. I see that we do it for C/C++ as well but given
that that code refers to clang 3.5, I doubt many have hit it. I would prefer
that we leave out the fallback and only add it if someone complains.
https://github.com/llvm/llvm-project/pull/208298
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits