Skip to content

Commit b76e30c

Browse files
committed
scripts: Add -mno-unaligned-access to clang armv7a sample
Generate code that doesn't perform unaligned accesses. Signed-off-by: Keith Packard <[email protected]>
1 parent 374cba3 commit b76e30c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/cross-clang-thumbv7-a-none-eabi.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
# so we have to add -nostdlib to the compiler configuration itself or
44
# early compiler tests will fail. This can be removed when picolibc
55
# requires at least version 0.54.2 of meson.
6-
c = ['clang', '-m32', '-target', 'arm-none-eabihf', '-march=armv7-a', '-mfloat-abi=soft', '-nostdlib']
7-
cpp = ['clang', '-m32', '-target', 'arm-none-eabihf', '-march=armv7-a', '-mfloat-abi=soft', '-nostdlib']
6+
c = ['clang', '-m32', '-target', 'arm-none-eabihf', '-mno-unaligned-access', '-march=armv7-a', '-mfloat-abi=soft', '-nostdlib']
7+
cpp = ['clang', '-m32', '-target', 'arm-none-eabihf', '-mno-unaligned-access', '-march=armv7-a', '-mfloat-abi=soft', '-nostdlib']
88
ar = 'arm-none-eabi-ar'
99
as = 'arm-none-eab-as'
1010
nm = 'arm-none-eab-nm'

0 commit comments

Comments
 (0)