Skip to content

Commit 56ec591

Browse files
committed
rename namespace pollution meson option
the new option name emphasizes the enabling of backwards compatibility API macros, which is a more constructive and actionable than 'namespace pollution'
1 parent 6aac5f7 commit 56ec591

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ if cc.get_id() == 'msvc'
3434
endforeach
3535
endif
3636

37-
if get_option('reduce-namespace-pollution')
37+
if not get_option('enable-old-api')
3838
add_project_arguments('-DBSTRLIB_REDUCE_NAMESPACE_POLLUTION', language: 'c')
3939
endif
4040

meson_options.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ option(
1717
description: 'Build libFuzzer fuzz targets (requires clang)',
1818
)
1919
option(
20-
'fuzz-link-arg',
21-
type: 'string',
22-
value: '-fsanitize=fuzzer,address',
23-
description: 'Linker flag used for fuzz targets (ClusterFuzzLite passes LIB_FUZZING_ENGINE here)',
20+
'enable-old-api',
21+
type: 'boolean',
22+
value: false,
23+
description: 'Enable backward compatibility macros for pre-1.0 API',
2424
)
2525
option(
2626
'enable-tests',
@@ -35,8 +35,8 @@ option(
3535
description: 'Build bstring library with UTF-8 support',
3636
)
3737
option(
38-
'reduce-namespace-pollution',
39-
type: 'boolean',
40-
value: true,
41-
description: 'Hide backward-compatibility macros in bstraux.h',
38+
'fuzz-link-arg',
39+
type: 'string',
40+
value: '-fsanitize=fuzzer,address',
41+
description: 'Linker flag used for fuzz targets (ClusterFuzzLite passes LIB_FUZZING_ENGINE here)',
4242
)

0 commit comments

Comments
 (0)