@@ -23,17 +23,6 @@ package(
23
23
24
24
licenses (["notice" ])
25
25
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
-
37
26
# A flag to pick which `mpfr` to use for math tests.
38
27
# Usage: `--@llvm-project//libc:mpfr=<disable|external|system>`.
39
28
# Flag documentation: https://bazel.build/extending/config
@@ -2421,7 +2410,6 @@ libc_support_library(
2421
2410
"src/string/memory_utils/op_x86.h" ,
2422
2411
"src/string/memory_utils/utils.h" ,
2423
2412
],
2424
- defines = MEMORY_COPTS ,
2425
2413
textual_hdrs = [
2426
2414
"src/string/memory_utils/aarch64/inline_bcmp.h" ,
2427
2415
"src/string/memory_utils/aarch64/inline_memcmp.h" ,
@@ -3191,15 +3179,13 @@ libc_function(
3191
3179
libc_support_library (
3192
3180
name = "printf_config" ,
3193
3181
hdrs = ["src/stdio/printf_core/printf_config.h" ],
3194
- defines = PRINTF_COPTS ,
3195
3182
deps = [
3196
3183
],
3197
3184
)
3198
3185
3199
3186
libc_support_library (
3200
3187
name = "printf_core_structs" ,
3201
3188
hdrs = ["src/stdio/printf_core/core_structs.h" ],
3202
- defines = PRINTF_COPTS ,
3203
3189
deps = [
3204
3190
":__support_cpp_string_view" ,
3205
3191
":__support_fputil_fp_bits" ,
@@ -3210,7 +3196,6 @@ libc_support_library(
3210
3196
libc_support_library (
3211
3197
name = "printf_parser" ,
3212
3198
hdrs = ["src/stdio/printf_core/parser.h" ],
3213
- defines = PRINTF_COPTS ,
3214
3199
deps = [
3215
3200
":__support_arg_list" ,
3216
3201
":__support_common" ,
@@ -3231,7 +3216,7 @@ libc_support_library(
3231
3216
libc_support_library (
3232
3217
name = "printf_mock_parser" ,
3233
3218
hdrs = ["src/stdio/printf_core/parser.h" ],
3234
- defines = PRINTF_COPTS + ["LIBC_COPT_MOCK_ARG_LIST" ],
3219
+ local_defines = ["LIBC_COPT_MOCK_ARG_LIST" ],
3235
3220
deps = [
3236
3221
":__support_arg_list" ,
3237
3222
":__support_common" ,
@@ -3251,7 +3236,6 @@ libc_support_library(
3251
3236
name = "printf_writer" ,
3252
3237
srcs = ["src/stdio/printf_core/writer.cpp" ],
3253
3238
hdrs = ["src/stdio/printf_core/writer.h" ],
3254
- defines = PRINTF_COPTS ,
3255
3239
deps = [
3256
3240
":__support_cpp_string_view" ,
3257
3241
":__support_macros_optimization" ,
@@ -3276,7 +3260,6 @@ libc_support_library(
3276
3260
"src/stdio/printf_core/string_converter.h" ,
3277
3261
"src/stdio/printf_core/write_int_converter.h" ,
3278
3262
],
3279
- defines = PRINTF_COPTS ,
3280
3263
deps = [
3281
3264
":__support_big_int" ,
3282
3265
":__support_common" ,
@@ -3300,7 +3283,6 @@ libc_support_library(
3300
3283
name = "printf_main" ,
3301
3284
srcs = ["src/stdio/printf_core/printf_main.cpp" ],
3302
3285
hdrs = ["src/stdio/printf_core/printf_main.h" ],
3303
- defines = PRINTF_COPTS ,
3304
3286
deps = [
3305
3287
":__support_arg_list" ,
3306
3288
":printf_converter" ,
@@ -3313,7 +3295,6 @@ libc_support_library(
3313
3295
libc_support_library (
3314
3296
name = "vfprintf_internal" ,
3315
3297
hdrs = ["src/stdio/printf_core/vfprintf_internal.h" ],
3316
- defines = PRINTF_COPTS ,
3317
3298
deps = [
3318
3299
":__support_arg_list" ,
3319
3300
":__support_file_file" ,
@@ -3327,7 +3308,6 @@ libc_function(
3327
3308
name = "sprintf" ,
3328
3309
srcs = ["src/stdio/sprintf.cpp" ],
3329
3310
hdrs = ["src/stdio/sprintf.h" ],
3330
- defines = PRINTF_COPTS ,
3331
3311
deps = [
3332
3312
":__support_arg_list" ,
3333
3313
":__support_cpp_limits" ,
@@ -3341,7 +3321,6 @@ libc_function(
3341
3321
name = "snprintf" ,
3342
3322
srcs = ["src/stdio/snprintf.cpp" ],
3343
3323
hdrs = ["src/stdio/snprintf.h" ],
3344
- defines = PRINTF_COPTS ,
3345
3324
deps = [
3346
3325
":__support_arg_list" ,
3347
3326
":errno" ,
@@ -3354,7 +3333,6 @@ libc_function(
3354
3333
name = "printf" ,
3355
3334
srcs = ["src/stdio/printf.cpp" ],
3356
3335
hdrs = ["src/stdio/printf.h" ],
3357
- defines = PRINTF_COPTS ,
3358
3336
deps = [
3359
3337
":__support_arg_list" ,
3360
3338
":__support_file_file" ,
@@ -3367,7 +3345,6 @@ libc_function(
3367
3345
name = "fprintf" ,
3368
3346
srcs = ["src/stdio/fprintf.cpp" ],
3369
3347
hdrs = ["src/stdio/fprintf.h" ],
3370
- defines = PRINTF_COPTS ,
3371
3348
deps = [
3372
3349
":__support_arg_list" ,
3373
3350
":__support_file_file" ,
@@ -3380,7 +3357,6 @@ libc_function(
3380
3357
name = "vsprintf" ,
3381
3358
srcs = ["src/stdio/vsprintf.cpp" ],
3382
3359
hdrs = ["src/stdio/vsprintf.h" ],
3383
- defines = PRINTF_COPTS ,
3384
3360
deps = [
3385
3361
":__support_arg_list" ,
3386
3362
":__support_cpp_limits" ,
@@ -3394,7 +3370,6 @@ libc_function(
3394
3370
name = "vsnprintf" ,
3395
3371
srcs = ["src/stdio/vsnprintf.cpp" ],
3396
3372
hdrs = ["src/stdio/vsnprintf.h" ],
3397
- defines = PRINTF_COPTS ,
3398
3373
deps = [
3399
3374
":__support_arg_list" ,
3400
3375
":errno" ,
@@ -3407,7 +3382,6 @@ libc_function(
3407
3382
name = "vprintf" ,
3408
3383
srcs = ["src/stdio/vprintf.cpp" ],
3409
3384
hdrs = ["src/stdio/vprintf.h" ],
3410
- defines = PRINTF_COPTS ,
3411
3385
deps = [
3412
3386
":__support_arg_list" ,
3413
3387
":__support_file_file" ,
@@ -3420,7 +3394,6 @@ libc_function(
3420
3394
name = "vfprintf" ,
3421
3395
srcs = ["src/stdio/vfprintf.cpp" ],
3422
3396
hdrs = ["src/stdio/vfprintf.h" ],
3423
- defines = PRINTF_COPTS ,
3424
3397
deps = [
3425
3398
":__support_arg_list" ,
3426
3399
":__support_file_file" ,
0 commit comments