Skip to content

LFortran: --generate-object-code flag breaks lfortran's own examples/project1

When LFortran support was added by !9188 (merged), we hard-coded --generate-object-code in CMAKE_Fortran_COMPILE_OBJECT.

As reported in:

this flag breaks lfortran's examples/project1 example. The example uses Fortran modules, for which --generate-object-code does not work:

However, removing the --generate-object-code flag causes several of CMake's Fortran test cases to fail. We need to figure out how to reconcile these cases.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information