Skip to content

Conversation

@jmr
Copy link
Member

@jmr jmr commented May 18, 2025

Add add_compile_options(-fsized-deallocation) to non-MSVC compiler options.

base/port.h uses sized deallocation, which should be enabled by default for C++14 and later. There appears to be a bug with clang < 19 causing this not to be enabled.
#411 (comment) This can be removed when clang19 is the minimum supported version.

Fixes #411.

@jmr
Copy link
Member Author

jmr commented May 18, 2025

@idevtm

Add `add_compile_options(-fsized-deallocation)` to non-MSVC compiler
options

`base/port.h` uses sized deallocation, which should be enabled by
default for C++14 and later.  There appears to be a bug with clang
< 19 causing this not to be enabled.
google#411 (comment)
This can be removed when clang19 is the minimum supported version.

Fixes google#411.
@jmr jmr merged commit cea0b23 into google:master May 18, 2025
1 of 10 checks passed
@jmr jmr deleted the sized-alloc branch May 18, 2025 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

S2 Master Fails to build with clang14

1 participant