diff options
author | michaelrj-google <71531609+michaelrj-google@users.noreply.github.com> | 2023-11-27 16:53:52 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-27 16:53:52 -0800 |
commit | 67268da61aa2f8b24172907ee6f8d9250ee18b65 (patch) | |
tree | f6fce6ef15ee0e95bf700cf0c07e87555b206cd3 /utils | |
parent | 52b413f25ae79b07df88c0224adec4a6d7dabecc (diff) | |
download | llvm-67268da61aa2f8b24172907ee6f8d9250ee18b65.zip llvm-67268da61aa2f8b24172907ee6f8d9250ee18b65.tar.gz llvm-67268da61aa2f8b24172907ee6f8d9250ee18b65.tar.bz2 |
[libc][bazel] Add copts to libc_support_library (#73591)
Most libc_support_library calls are for header-only libraries, but there
are a few that have .cpp files. This patch adds the same base copts to
these that libc_function already has.
Diffstat (limited to 'utils')
-rw-r--r-- | utils/bazel/llvm-project-overlay/libc/libc_build_rules.bzl | 6 |
1 files changed, 4 insertions, 2 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 0c63bdb..011f944 100644 --- a/utils/bazel/llvm-project-overlay/libc/libc_build_rules.bzl +++ b/utils/bazel/llvm-project-overlay/libc/libc_build_rules.bzl @@ -47,8 +47,10 @@ 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, **kwargs): - _libc_library(name = name, hidden = False, **kwargs) +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_function( name, |