[Flang-dev] Fortran compatible ninja; flang circular dependencies

blubee blubeeme gurenchan at gmail.com
Fri Oct 12 02:39:08 EDT 2018

There's a fork of ninja that supports fortran files:

When attempting to build you'll get an error:

You can change that from error to warning with
-w dupbuild=warn

but then the build still fails with circular dependencies:
-- Build files have been written to:
ninja: warning: multiple rules generate include/iso_c_binding.mod. builds
involving this target will not be correct; continuing anyway [-w
ninja: error: dependency cycle:
runtime/flang/CMakeFiles/flang_shared.dir/Fortran.dd ->
runtime/flang/CMakeFiles/flang_shared.dir/ieee_arithmetic.F95-pp.f95.ddi ->
include/iso_c_binding.mod ->
runtime/flang/CMakeFiles/flang_shared.dir/iso_c_bind.F95.o ->

It doesn't fail with Makefiles but ninja allows building a lot faster.

Is this something that the flang developers are interested in taking a look

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.flang-compiler.org/pipermail/flang-dev_lists.flang-compiler.org/attachments/20181012/492e1455/attachment.html>

More information about the flang-dev mailing list