[flang-commits] [flang] [flang][Driver] Support -rpath, -shared, and -static in the frontend (PR #66702)

Fangrui Song via flang-commits flang-commits at lists.llvm.org
Wed Sep 20 22:08:21 PDT 2023


================
@@ -50,3 +50,19 @@
 ! MSVC-SAME: FortranDecimal.lib
 ! MSVC-SAME: /subsystem:console
 ! MSVC-SAME: "[[object_file]]"
+
+! Verify that certain linker flags are known to the frontend and are passed on
+! to the linker.
+
+! RUN: %flang -### -rpath /path/to/dir %s 2>&1 \
----------------
MaskRay wrote:

The tests are trivial but having too many tests slows down execution. It certainly doesn't matter in this case but if everybody adds more tests than necessary, the testsuite execution will be very slow. In this case, just test all options in one command.

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


More information about the flang-commits mailing list