@@ -23,17 +23,6 @@ package(
2323
2424licenses (["notice" ])
2525
26- PRINTF_COPTS = [
27- "LIBC_COPT_STDIO_USE_SYSTEM_FILE" ,
28- "LIBC_COPT_PRINTF_DISABLE_WRITE_INT" ,
29- ]
30-
31- MEMORY_COPTS = [
32- # "LIBC_COPT_MEMCPY_X86_USE_REPMOVSB_FROM_SIZE=0",
33- # "LIBC_COPT_MEMCPY_X86_USE_SOFTWARE_PREFETCHING",
34- # "LIBC_COPT_MEMSET_X86_USE_SOFTWARE_PREFETCHING",
35- ]
36-
3726# A flag to pick which `mpfr` to use for math tests.
3827# Usage: `--@llvm-project//libc:mpfr=<disable|external|system>`.
3928# Flag documentation: https://bazel.build/extending/config
@@ -2421,7 +2410,6 @@ libc_support_library(
24212410 "src/string/memory_utils/op_x86.h" ,
24222411 "src/string/memory_utils/utils.h" ,
24232412 ],
2424- defines = MEMORY_COPTS ,
24252413 textual_hdrs = [
24262414 "src/string/memory_utils/aarch64/inline_bcmp.h" ,
24272415 "src/string/memory_utils/aarch64/inline_memcmp.h" ,
@@ -3191,15 +3179,13 @@ libc_function(
31913179libc_support_library (
31923180 name = "printf_config" ,
31933181 hdrs = ["src/stdio/printf_core/printf_config.h" ],
3194- defines = PRINTF_COPTS ,
31953182 deps = [
31963183 ],
31973184)
31983185
31993186libc_support_library (
32003187 name = "printf_core_structs" ,
32013188 hdrs = ["src/stdio/printf_core/core_structs.h" ],
3202- defines = PRINTF_COPTS ,
32033189 deps = [
32043190 ":__support_cpp_string_view" ,
32053191 ":__support_fputil_fp_bits" ,
@@ -3210,7 +3196,6 @@ libc_support_library(
32103196libc_support_library (
32113197 name = "printf_parser" ,
32123198 hdrs = ["src/stdio/printf_core/parser.h" ],
3213- defines = PRINTF_COPTS ,
32143199 deps = [
32153200 ":__support_arg_list" ,
32163201 ":__support_common" ,
@@ -3231,7 +3216,7 @@ libc_support_library(
32313216libc_support_library (
32323217 name = "printf_mock_parser" ,
32333218 hdrs = ["src/stdio/printf_core/parser.h" ],
3234- defines = PRINTF_COPTS + ["LIBC_COPT_MOCK_ARG_LIST" ],
3219+ local_defines = ["LIBC_COPT_MOCK_ARG_LIST" ],
32353220 deps = [
32363221 ":__support_arg_list" ,
32373222 ":__support_common" ,
@@ -3251,7 +3236,6 @@ libc_support_library(
32513236 name = "printf_writer" ,
32523237 srcs = ["src/stdio/printf_core/writer.cpp" ],
32533238 hdrs = ["src/stdio/printf_core/writer.h" ],
3254- defines = PRINTF_COPTS ,
32553239 deps = [
32563240 ":__support_cpp_string_view" ,
32573241 ":__support_macros_optimization" ,
@@ -3276,7 +3260,6 @@ libc_support_library(
32763260 "src/stdio/printf_core/string_converter.h" ,
32773261 "src/stdio/printf_core/write_int_converter.h" ,
32783262 ],
3279- defines = PRINTF_COPTS ,
32803263 deps = [
32813264 ":__support_big_int" ,
32823265 ":__support_common" ,
@@ -3300,7 +3283,6 @@ libc_support_library(
33003283 name = "printf_main" ,
33013284 srcs = ["src/stdio/printf_core/printf_main.cpp" ],
33023285 hdrs = ["src/stdio/printf_core/printf_main.h" ],
3303- defines = PRINTF_COPTS ,
33043286 deps = [
33053287 ":__support_arg_list" ,
33063288 ":printf_converter" ,
@@ -3313,7 +3295,6 @@ libc_support_library(
33133295libc_support_library (
33143296 name = "vfprintf_internal" ,
33153297 hdrs = ["src/stdio/printf_core/vfprintf_internal.h" ],
3316- defines = PRINTF_COPTS ,
33173298 deps = [
33183299 ":__support_arg_list" ,
33193300 ":__support_file_file" ,
@@ -3327,7 +3308,6 @@ libc_function(
33273308 name = "sprintf" ,
33283309 srcs = ["src/stdio/sprintf.cpp" ],
33293310 hdrs = ["src/stdio/sprintf.h" ],
3330- defines = PRINTF_COPTS ,
33313311 deps = [
33323312 ":__support_arg_list" ,
33333313 ":__support_cpp_limits" ,
@@ -3341,7 +3321,6 @@ libc_function(
33413321 name = "snprintf" ,
33423322 srcs = ["src/stdio/snprintf.cpp" ],
33433323 hdrs = ["src/stdio/snprintf.h" ],
3344- defines = PRINTF_COPTS ,
33453324 deps = [
33463325 ":__support_arg_list" ,
33473326 ":errno" ,
@@ -3354,7 +3333,6 @@ libc_function(
33543333 name = "printf" ,
33553334 srcs = ["src/stdio/printf.cpp" ],
33563335 hdrs = ["src/stdio/printf.h" ],
3357- defines = PRINTF_COPTS ,
33583336 deps = [
33593337 ":__support_arg_list" ,
33603338 ":__support_file_file" ,
@@ -3367,7 +3345,6 @@ libc_function(
33673345 name = "fprintf" ,
33683346 srcs = ["src/stdio/fprintf.cpp" ],
33693347 hdrs = ["src/stdio/fprintf.h" ],
3370- defines = PRINTF_COPTS ,
33713348 deps = [
33723349 ":__support_arg_list" ,
33733350 ":__support_file_file" ,
@@ -3380,7 +3357,6 @@ libc_function(
33803357 name = "vsprintf" ,
33813358 srcs = ["src/stdio/vsprintf.cpp" ],
33823359 hdrs = ["src/stdio/vsprintf.h" ],
3383- defines = PRINTF_COPTS ,
33843360 deps = [
33853361 ":__support_arg_list" ,
33863362 ":__support_cpp_limits" ,
@@ -3394,7 +3370,6 @@ libc_function(
33943370 name = "vsnprintf" ,
33953371 srcs = ["src/stdio/vsnprintf.cpp" ],
33963372 hdrs = ["src/stdio/vsnprintf.h" ],
3397- defines = PRINTF_COPTS ,
33983373 deps = [
33993374 ":__support_arg_list" ,
34003375 ":errno" ,
@@ -3407,7 +3382,6 @@ libc_function(
34073382 name = "vprintf" ,
34083383 srcs = ["src/stdio/vprintf.cpp" ],
34093384 hdrs = ["src/stdio/vprintf.h" ],
3410- defines = PRINTF_COPTS ,
34113385 deps = [
34123386 ":__support_arg_list" ,
34133387 ":__support_file_file" ,
@@ -3420,7 +3394,6 @@ libc_function(
34203394 name = "vfprintf" ,
34213395 srcs = ["src/stdio/vfprintf.cpp" ],
34223396 hdrs = ["src/stdio/vfprintf.h" ],
3423- defines = PRINTF_COPTS ,
34243397 deps = [
34253398 ":__support_arg_list" ,
34263399 ":__support_file_file" ,
0 commit comments