Skip to content

Commit 300425c

Browse files
authored
Revert "[Docs] Add release note about Clang-defined target OS macros … (#80045)
…(#79879)" This reverts commit b40d5b1. The target OS macros work is included in the 18.x release. Move the release note to the release branch (#80044).
1 parent 049e142 commit 300425c

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

clang/docs/ReleaseNotes.rst

-26
Original file line numberDiff line numberDiff line change
@@ -62,21 +62,6 @@ Clang Frontend Potentially Breaking Changes
6262
of ``-Wno-gnu-binary-literal`` will no longer silence this pedantic warning,
6363
which may break existing uses with ``-Werror``.
6464

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-
8065
What's New in Clang |release|?
8166
==============================
8267
Some of the major new features and improvements to Clang are listed
@@ -161,17 +146,6 @@ Non-comprehensive list of changes in this release
161146
New Compiler Flags
162147
------------------
163148

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-
175149
Deprecated Compiler Flags
176150
-------------------------
177151

0 commit comments

Comments
 (0)