This is an archive of the discontinued LLVM Phabricator instance.

[runtimes] Synchronize warnings flags between libc++/libc++abi/libunwind
ClosedPublic

Authored by philnik on Feb 17 2023, 2:34 AM.

Details

Reviewers
ldionne
Group Reviewers
Restricted Project
Restricted Project
Restricted Project
Commits
rGa7aade1f36eb: [runtimes] Synchronize warnings flags between libc++/libc++abi/libunwind
Summary

This mostly keeps the same warning flags. The most important exceptions are -Wpedantic and -Wconversion, which are now removed from libc++abi and libunwind.

Diff Detail

Event Timeline

philnik created this revision.Feb 17 2023, 2:34 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptFeb 17 2023, 2:34 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
philnik requested review of this revision.Feb 17 2023, 2:34 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptFeb 17 2023, 2:34 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
Herald added a reviewer: Restricted Project. · View Herald Transcript
philnik updated this revision to Diff 499149.Feb 21 2023, 6:36 AM

Address comments

ldionne accepted this revision.Mar 9 2023, 8:24 AM

Can you record in the commit message what the changes to the warnings are? It seems like the libcxxabi and libunwind warning flags were the same, so those are synced to the libcxx warnings. However, that synchronization removes -Wconversion from the libcxxabi and libunwind flags (the TODO you added). Is that all?

Thanks for the refactoring by the way, this is a great way to get where we needed to be while leaving the code better behind you.

libcxx/CMakeLists.txt
843

Here you use cxx_add_warning_flags but you have not included WarningFlags.cmake. I think that's your Windows CI issue. IDK why it works on other platforms, that's almost concerning.

runtimes/cmake/Modules/WarningFlags.cmake
69–72

FWIW I strongly suspect this is not needed anymore. Let's try to get rid of it in a different patch.

This revision is now accepted and ready to land.Mar 9 2023, 8:24 AM
philnik edited the summary of this revision. (Show Details)Mar 9 2023, 1:47 PM
philnik updated this revision to Diff 503927.Mar 9 2023, 1:56 PM

Try to fix CI

philnik marked an inline comment as done.Mar 9 2023, 1:57 PM
philnik updated this revision to Diff 505806.Mar 16 2023, 7:52 AM

Try to fix CI

This revision was landed with ongoing or failed builds.Mar 16 2023, 4:41 PM
This revision was automatically updated to reflect the committed changes.