Skip to content

Commit 4e67528

Browse files
author
borman
committed
Opt out from -faligned-allocation where it is not supported
commit_hash:fa86bc07ca13e6d7c715c5912755d66c01210e67
1 parent 527896f commit 4e67528

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/ymake_conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1479,8 +1479,8 @@ def __init__(self, tc, build):
14791479
if self.tc.is_clang:
14801480
# Set up output colorization
14811481
self.c_foptions.append('-fcolor-diagnostics')
1482-
if self.tc.version_at_least(4):
1483-
# Enable aligned allocation
1482+
if not is_positive('NO_CXX_ALIGNED_ALLOCATION') and self.tc.version_at_least(4):
1483+
# Enable aligned allocation, unless explicitly disabled
14841484
self.c_foptions.append('-faligned-allocation')
14851485
elif self.tc.is_gcc:
14861486
if self.target.is_tc32:

0 commit comments

Comments
 (0)