@@ -62,21 +62,6 @@ Clang Frontend Potentially Breaking Changes
62
62
of ``-Wno-gnu-binary-literal `` will no longer silence this pedantic warning,
63
63
which may break existing uses with ``-Werror ``.
64
64
65
- Target OS macros extension
66
- ^^^^^^^^^^^^^^^^^^^^^^^^^^
67
- A new Clang extension (see :ref: `here <target_os_detail >`) is enabled for
68
- Darwin (Apple platform) targets. Clang now defines ``TARGET_OS_* `` macros for
69
- these targets, which could break existing code bases with improper checks for
70
- the ``TARGET_OS_ `` macros. For example, existing checks might fail to include
71
- the ``TargetConditionals.h `` header from Apple SDKs and therefore leaving the
72
- macros undefined and guarded code unexercised.
73
-
74
- Affected code should be checked to see if it's still intended for the specific
75
- target and fixed accordingly.
76
-
77
- The extension can be turned off by the option ``-fno-define-target-os-macros ``
78
- as a workaround.
79
-
80
65
What's New in Clang |release |?
81
66
==============================
82
67
Some of the major new features and improvements to Clang are listed
@@ -161,17 +146,6 @@ Non-comprehensive list of changes in this release
161
146
New Compiler Flags
162
147
------------------
163
148
164
- .. _target_os_detail :
165
-
166
- Target OS macros extension
167
- ^^^^^^^^^^^^^^^^^^^^^^^^^^
168
- A pair of new flags ``-fdefine-target-os-macros `` and
169
- ``-fno-define-target-os-macros `` has been added to Clang to enable/disable the
170
- extension to provide built-in definitions of a list of ``TARGET_OS_* `` macros
171
- based on the target triple.
172
-
173
- The extension is enabled by default for Darwin (Apple platform) targets.
174
-
175
149
Deprecated Compiler Flags
176
150
-------------------------
177
151
0 commit comments