Add -J to the f18 driver for compatibility with gfortran.
Add -module-dir for compatibility with the new flang driver.
They both set the output directory for .mod files and add the
directory to the search list. -module still only does the former.
Paths
| Differential D97164
[flang] Add -J and -module-dir to f18 driver ClosedPublic Authored by tskeith on Feb 21 2021, 2:40 PM.
Details Summary Add -J to the f18 driver for compatibility with gfortran. They both set the output directory for .mod files and add the
Diff Detail
Event TimelineComment Actions Remove f18 test from test/Flang-Driver/write-module.f90. Comment Actions Thank you for submitting this Tim! Would you mind adding the following in flang/test/Flang-Driver/write-module.f90 before merging? This way both -module-dir _and_ -J are tested. ! RUN: rm -rf %t && mkdir -p %t/dir-flang ! RUN: cd %t && %flang -fsyntax-only -J %t/dir-flang %s ! RUN: ls %t/dir-flang/testmodule.mod && not ls %t/testmodule.mod This revision is now accepted and ready to land.Feb 22 2021, 4:10 AM Comment Actions
OK. I also added a test for -J without a space after it. This revision was landed with ongoing or failed builds.Feb 22 2021, 9:04 AM Closed by commit rG8720ec6b9a28: [flang] Add -J and -module-dir to f18 driver (authored by tskeith). · Explain Why This revision was automatically updated to reflect the committed changes. This comment was removed by sscalpone.
Revision Contents
Diff 325465 flang/test/Driver/write-module.f90
flang/test/Flang-Driver/write-module.f90
flang/tools/f18/f18.cpp
|