[clang] [Driver] Silence stdlib warning when linking C on FreeBSD (PR #68011)

via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 2 11:56:59 PDT 2023


dankm wrote:

This fixes this inconsistency:

Linux:
```
$ clang -o test -stdlib=libc++ test.c
$ ./test
Hello world
```

FreeBSD:
```
$ clang -o test -stdlib=libc++ test.c
clang: warning: argument unused during compilation: '-stdlib=libc++' [-Wunused-command-line-argument]
$ ./test
Hello world
```

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


More information about the cfe-commits mailing list