Skip to content

Commit 1609632

Browse files
[clang][Docs] Add release note for {target}-none-{environment} triple normalization changes (#90734)
That were implemented by #89638.
1 parent cd132dc commit 1609632

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

clang/docs/ReleaseNotes.rst

+19
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,25 @@ Clang Frontend Potentially Breaking Changes
9090
of ``-Wno-gnu-binary-literal`` will no longer silence this pedantic warning,
9191
which may break existing uses with ``-Werror``.
9292

93+
- The normalization of 3 element target triples where ``-none-`` is the middle
94+
element has changed. For example, ``armv7m-none-eabi`` previously normalized
95+
to ``armv7m-none-unknown-eabi``, with ``none`` for the vendor and ``unknown``
96+
for the operating system. It now normalizes to ``armv7m-unknown-none-eabi``,
97+
which has ``unknown`` vendor and ``none`` operating system.
98+
99+
The affected triples are primarily for bare metal Arm where it is intended
100+
that ``none`` means that there is no operating system. As opposed to an unknown
101+
type of operating system.
102+
103+
This change my cause clang to not find libraries, or libraries to be built at
104+
different file system locations. This can be fixed by changing your builds to
105+
use the new normalized triple. However, we recommend instead getting the
106+
normalized triple from clang itself, as this will make your builds more
107+
robust in case of future changes::
108+
109+
$ clang --target=<your target triple> -print-target-triple
110+
<the normalized target triple>
111+
93112
What's New in Clang |release|?
94113
==============================
95114
Some of the major new features and improvements to Clang are listed

0 commit comments

Comments
 (0)