[PATCH] D114497: [Driver] Stop adding stdlib paths in -ffreestanding

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 23 20:58:52 PST 2021


MaskRay added a comment.

GCC -ffreestanding doesn't change libstdc++ search paths. Clang's behavior matches GCC.

To drop /usr/include/c++/v1, you need -nostdinc++. If you want to drop /usr/include etc, you need to specify --sysroot=


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D114497/new/

https://reviews.llvm.org/D114497



More information about the cfe-commits mailing list