[flang-commits] [clang] [flang] Revert "Revert "[Flang][Driver] Add a flag to control zero initializa… (PR #123097)

Tarun Prabhu via flang-commits flang-commits at lists.llvm.org
Wed Jan 15 10:15:04 PST 2025


tarunprabhu wrote:

> The test that fails is `flang/test/Lower/module_use.f90`. This test also compiles another test `flang/test/Lower/module_definition.f90`. Is there an issue with compiling the same test with modules two times and can they interact badly? This used to be the case in Classic Flang.

If the tests happen to run in parallel, they could clobber the `.mod` file if both write the module file to the same directory. This is the case with `gfortran`, but I haven't explicitly tried such things with flang.

Specifying an explicit `-J` with a temporary directory should resolve that. I know that `%t` in `lit` gives a temporary file. I don't know if you can get a temporary directory in a similar fashion.

https://github.com/llvm/llvm-project/pull/123097


More information about the flang-commits mailing list