llvm-project
3779bcb1 - [libc++] Switch the enable_warnings Lit parameter to enable_werror (#214113)

Commit
10 days ago
[libc++] Switch the enable_warnings Lit parameter to enable_werror (#214113) Our enable_warnings=False parameter in the test suite was basically not working as intended. Instead of disabling warnings, it would disable all warning-related flags, including flags that are required for the test suite to pass (e.g. -Wno-user-defined-literals). As a result, it couldn't be turned off. Remove enable_warnings and introduce enable_werror instead. That way, we can disable -Werror in the test suite but the warnings (and -Wno-foo) are always used, which is necessary for the test suite to function. Note that the ability to run the test suite without -Werror is necessary in order to test against other implementations, including older versions of libc++ itself.
Author
Parents
Loading