[all-commits] [llvm/llvm-project] 6e1f19: [clang][PP] Add extension to predefine target OS m...
Zixu Wang via All-commits
all-commits at lists.llvm.org
Thu Dec 7 17:41:11 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6e1f19168bca7e3bd4eefda50ba03eac8441dbbf
https://github.com/llvm/llvm-project/commit/6e1f19168bca7e3bd4eefda50ba03eac8441dbbf
Author: Zixu Wang <9819235+zixu-w at users.noreply.github.com>
Date: 2023-12-07 (Thu, 07 Dec 2023)
Changed paths:
M clang/include/clang/Basic/Features.def
A clang/include/clang/Basic/TargetOSMacros.def
M clang/include/clang/Driver/Options.td
M clang/include/clang/Lex/PreprocessorOptions.h
M clang/lib/Driver/ToolChains/Clang.cpp
M clang/lib/Driver/ToolChains/Darwin.cpp
M clang/lib/Frontend/CompilerInvocation.cpp
M clang/lib/Frontend/InitPreprocessor.cpp
A clang/test/Driver/fdefine-target-os-macros.c
Log Message:
-----------
[clang][PP] Add extension to predefine target OS macros (#74676)
Add an extension feature `define-target-os-macros` that enables clang to
provide definitions of common TARGET_OS_* conditional macros. The
extension is enabled in the Darwin toolchain driver.
More information about the All-commits
mailing list