[clang] [flang][Driver] Support -rpath, -shared, and -static in the frontend (PR #66702)
Tarun Prabhu via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 20 06:52:28 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 \
----------------
tarunprabhu wrote:
Are you suggesting combining `-rpath -shared` in one command and `-rpath -static` in another? Also, there is the option of putting all three in one command because `shared` and `-static` may be used simultaneously? Do I understand you correctly?
If so, isn't it better to have smaller commands that test one thing unless we explicitly want to check combinations?
https://github.com/llvm/llvm-project/pull/66702
More information about the cfe-commits
mailing list