[all-commits] [llvm/llvm-project] 3baadf: [CMake] Remove CLANG_DEFAULT_STD_C/CLANG_DEFAULT_S...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Sun Oct 16 13:16:01 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3baadff896eddfa09fcd458d120bac95491992a7
https://github.com/llvm/llvm-project/commit/3baadff896eddfa09fcd458d120bac95491992a7
Author: Fangrui Song <i at maskray.me>
Date: 2022-10-16 (Sun, 16 Oct 2022)
Changed paths:
M clang/CMakeLists.txt
M clang/include/clang/Config/config.h.cmake
M clang/lib/Basic/LangStandards.cpp
M clang/test/Preprocessor/lang-std.cpp
M clang/test/lit.cfg.py
M clang/test/lit.site.cfg.py.in
M llvm/utils/gn/secondary/clang/include/clang/Config/BUILD.gn
M llvm/utils/gn/secondary/clang/test/BUILD.gn
M utils/bazel/llvm-project-overlay/clang/include/clang/Config/config.h
Log Message:
-----------
[CMake] Remove CLANG_DEFAULT_STD_C/CLANG_DEFAULT_STD_CXX
When Clang is used as a cross compiler, it should respect the target
platform default. Defaulting to a configure-time CLANG_DEFAULT_STD_C/CLANG_DEFAULT_STD_CXX
does not make much sense.
When Clang is used as a single-platform compiler, we should use Clang
configuration file (https://discourse.llvm.org/t/configuration-files/42529
https://clang.llvm.org/docs/UsersManual.html#configuration-files).
The Gentoo needs from D34365 has been satisfied by a configuration file.
Reviewed By: mgorny
Differential Revision: https://reviews.llvm.org/D133375
More information about the All-commits
mailing list