[llvm] Revert "[libc][bazel] Add copts to libc_support_library" (PR #73723)

via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 28 16:21:49 PST 2023


https://github.com/michaelrj-google created https://github.com/llvm/llvm-project/pull/73723

Reverts llvm/llvm-project#73591

Broke downstream builds. I will look into relanding tomorrow.

>From a0577d2ef203200c3400b8fada37cae3a862042a Mon Sep 17 00:00:00 2001
From: michaelrj-google <71531609+michaelrj-google at users.noreply.github.com>
Date: Tue, 28 Nov 2023 16:19:56 -0800
Subject: [PATCH] Revert "[libc][bazel] Add copts to libc_support_library
 (#73591)"

This reverts commit 67268da61aa2f8b24172907ee6f8d9250ee18b65.
---
 utils/bazel/llvm-project-overlay/libc/libc_build_rules.bzl | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

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 011f944311c281d..0c63bdb96333726 100644
--- a/utils/bazel/llvm-project-overlay/libc/libc_build_rules.bzl
+++ b/utils/bazel/llvm-project-overlay/libc/libc_build_rules.bzl
@@ -47,10 +47,8 @@ def _libc_library(name, hidden, copts = [], deps = [], **kwargs):
 # A convenience function which should be used to list all libc support libraries.
 # Any library which does not define a public function should be listed with
 # libc_support_library.
-def libc_support_library(name, copts = None, **kwargs):
-    copts = copts or []
-    copts = copts + ["-O3", "-fno-builtin", "-fno-lax-vector-conversions"]
-    _libc_library(name = name, copts = copts, hidden = False, **kwargs)
+def libc_support_library(name, **kwargs):
+    _libc_library(name = name, hidden = False, **kwargs)
 
 def libc_function(
         name,



More information about the llvm-commits mailing list