Skip to content

Commit 1af8cc5

Browse files
committed
Move -fext-numeric-literals to libc_test_rules.bzl.
1 parent 647337f commit 1af8cc5

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

utils/bazel/llvm-project-overlay/libc/libc_build_rules.bzl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ def libc_common_copts():
1717
"-I" + libc_include_path,
1818
"-I" + paths.join(libc_include_path, "include"),
1919
"-DLIBC_NAMESPACE=" + LIBC_NAMESPACE,
20-
# For complex floating point literals.
21-
"-fext-numeric-literals",
2220
]
2321

2422
def libc_release_copts():

utils/bazel/llvm-project-overlay/libc/test/libc_test_rules.bzl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ def libc_test(
6262
name = name,
6363
local_defines = local_defines + LIBC_CONFIGURE_OPTIONS,
6464
deps = deps,
65-
copts = copts + libc_common_copts(),
65+
# For complex floating point literals.
66+
copts = copts + libc_common_copts() + ["-fext-numeric-literals"],
6667
linkstatic = 1,
6768
**kwargs
6869
)

0 commit comments

Comments
 (0)