summaryrefslogtreecommitdiff
path: root/libc/src/math/generic/logf.cpp
diff options
context:
space:
mode:
authorTue Ly <lntue@google.com>2022-02-03 00:03:27 -0500
committerTue Ly <lntue@google.com>2022-02-04 09:59:21 -0500
commit700aebaf745f8b0a7c514ca452de1f60779816a1 (patch)
tree4cf8bf4c3eb2181219f85c616e33c7c26e304be5 /libc/src/math/generic/logf.cpp
parentd4e4ef2e81e03246e29e9b6eaa2929ebd4e77784 (diff)
[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
Diffstat (limited to 'libc/src/math/generic/logf.cpp')
-rw-r--r--libc/src/math/generic/logf.cpp5
1 files changed, 0 insertions, 5 deletions
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<float>(r);
}
-#pragma clang diagnostic pop
-
} // namespace __llvm_libc