banach-space wrote:

> Since this patch, I can no longer build spec2006 gromacs and calculix because 
> they supply their own main function in a C file, then link using flang-new: 
> leading to another definition of `main()` from the runtime. Do I need to use 
> a special flag to avoid linking to libFortran_main?

How about `flang-new -c file.90`? Which driver does the linking at the end?

TBH, sounds like you are building a mixed-source project. This should be 
supported by the Clang/Flang duo, but we haven't really tested that. It's 
possible that it "accidentally" worked, but this patch made the driver stricter 
and now we know that something is missing.

What's the compiler invoc?

https://github.com/llvm/llvm-project/pull/73124
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to