[libc-commits] [libc] 4e9ac30 - [reland][libc][NFC] Add -fno-lax-vector-conversions compilation flag
Guillaume Chatelet via libc-commits
libc-commits at lists.llvm.org
Tue Dec 27 02:33:11 PST 2022
Author: Guillaume Chatelet
Date: 2022-12-27T10:32:41Z
New Revision: 4e9ac3081651dd91b9e93e4a6da070896791b45f
URL: https://github.com/llvm/llvm-project/commit/4e9ac3081651dd91b9e93e4a6da070896791b45f
DIFF: https://github.com/llvm/llvm-project/commit/4e9ac3081651dd91b9e93e4a6da070896791b45f.diff
LOG: [reland][libc][NFC] Add -fno-lax-vector-conversions compilation flag
Now that a3d2c344773cc4fc95136fd67245880b34d8e335 has been submitted.
Added:
Modified:
libc/cmake/modules/LLVMLibCObjectRules.cmake
utils/bazel/llvm-project-overlay/libc/libc_build_rules.bzl
Removed:
################################################################################
diff --git a/libc/cmake/modules/LLVMLibCObjectRules.cmake b/libc/cmake/modules/LLVMLibCObjectRules.cmake
index 3502bcf022fa4..35c016df63654 100644
--- a/libc/cmake/modules/LLVMLibCObjectRules.cmake
+++ b/libc/cmake/modules/LLVMLibCObjectRules.cmake
@@ -23,6 +23,7 @@ function(_get_common_compile_options output_var flags)
list(APPEND compile_options "-ffreestanding")
list(APPEND compile_options "-fno-builtin")
list(APPEND compile_options "-fno-exceptions")
+ list(APPEND compile_options "-fno-lax-vector-conversions")
list(APPEND compile_options "-fno-unwind-tables")
list(APPEND compile_options "-fno-asynchronous-unwind-tables")
list(APPEND compile_options "-fno-rtti")
diff --git a/utils/bazel/llvm-project-overlay/libc/libc_build_rules.bzl b/utils/bazel/llvm-project-overlay/libc/libc_build_rules.bzl
index 6a4c1a56d27f7..7b5e9a1a4c6dd 100644
--- a/utils/bazel/llvm-project-overlay/libc/libc_build_rules.bzl
+++ b/utils/bazel/llvm-project-overlay/libc/libc_build_rules.bzl
@@ -69,6 +69,7 @@ def libc_function(
copts = copts or []
copts.append("-O3")
copts.append("-fno-builtin")
+ copts.append("-fno-lax-vector-conversions")
# We compile the code twice, the first target is suffixed with ".__internal__" and contains the
# C++ functions in the "__llvm_libc" namespace. This allows us to test the function in the
More information about the libc-commits
mailing list