MaskRay added inline comments.
================ Comment at: clang/CMakeLists.txt:179-183 +if(DEFAULT_SYSROOT) + message(WARNING "DEFAULT_SYSROOT is deprecated and will be removed. Use " + "configuration files (https://clang.llvm.org/docs/UsersManual.html#configuration-files)" + "to specify the default --sysroot=") +endif() ---------------- bcain wrote: > At one time I believe that the clang configuration files could not specify > paths relative to the clang executable. AFAICT `DEFAULT_SYSROOT` does > support this. > > But if I'm mistaken about that can we add an example to the docs at > https://clang.llvm.org/docs/UsersManual.html#configuration-files illustrating > how to use a relative sysroot? Clang configuration files just complement user-specified command line options. As one can do `--sysroot=./sysroot`, one can add `--sysroot=./sysroot` to a configuration file, too. If you think having a sysroot example is useful, I can add ``` # Relative --sysroot --sysroot=./sysroot ``` before clang/docs/UsersManual.rst:1018 `-c --target=x86_64-unknown-linux-gnu` Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D158218/new/ https://reviews.llvm.org/D158218 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits