[clang] [flang] [flang][Driver] Support -nodefaultlibs, -nostartfiles and -nostdlib (PR #72601)

Andrzej WarzyƄski via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 27 11:26:51 PST 2023


================
@@ -18,3 +18,38 @@
 ! MSVC-LINKER-OPTIONS: "{{.*}}link{{(.exe)?}}"
 ! MSVC-LINKER-OPTIONS-SAME: "-dll"
 ! MSVC-LINKER-OPTIONS-SAME: "-rpath" "/path/to/dir"
+
+! Verify that certain linker flags are known to the frontend and are not passed on
+! to the linker.
----------------
banach-space wrote:

I don't believe that this is correct - these flags are not forwarded to the linker.

```suggestion
! Verify that -nostdlib, -nodefeaultlibs and -nostartfiles modify what libraries are included in the linker invocation generated by the driver.
```

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


More information about the cfe-commits mailing list