From 700aebaf745f8b0a7c514ca452de1f60779816a1 Mon Sep 17 00:00:00 2001 From: Tue Ly Date: Thu, 3 Feb 2022 00:03:27 -0500 Subject: [libc] Set default CXX_STANDARD to C++17 and let targets set their own standard if needed. CMAKE_CXX_STANDARD 14 is set in the llvm-project/llvm folder overriding all COMPILE_OPTIONS -std=c++17. We need to override the CXX_STANDARD property of the target in order to set the correct C++ standard flags. Reviewed By: gchatelet Differential Revision: https://reviews.llvm.org/D118871 --- libc/src/math/generic/logf.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'libc/src/math/generic/logf.cpp') diff --git a/libc/src/math/generic/logf.cpp b/libc/src/math/generic/logf.cpp index 99bd7a473c7b..4a35f4988820 100644 --- a/libc/src/math/generic/logf.cpp +++ b/libc/src/math/generic/logf.cpp @@ -49,9 +49,6 @@ namespace __llvm_libc { -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wc++17-extensions" - // Lookup table for log(f) = log(1 + n*2^(-7)) where n = 0..127. static constexpr double LOG_F[128] = { 0x0.0000000000000p+0, 0x1.fe02a6b106788p-8, 0x1.fc0a8b0fc03e3p-7, @@ -178,6 +175,4 @@ LLVM_LIBC_FUNCTION(float, logf, (float x)) { return static_cast(r); } -#pragma clang diagnostic pop - } // namespace __llvm_libc -- cgit v1.2.3