Skip to content
Snippets Groups Projects
Commit 17952641 authored by David Duarte's avatar David Duarte Committed by Gerrit Code Review
Browse files

Merge "Merge fluoride_types_defaults_fuzzable into fluoride_defaults" into main

parents 78686c7a 7dcc07f7
No related branches found
No related tags found
No related merge requests found
...@@ -7,20 +7,14 @@ package { ...@@ -7,20 +7,14 @@ package {
default_applicable_licenses: ["system_bt_license"], default_applicable_licenses: ["system_bt_license"],
} }
// Fuzzable defaults are the subset of defaults that are used in fuzzing, which
// requires no shared libraries, and no explicit sanitization.
cc_defaults { cc_defaults {
name: "fluoride_types_defaults_fuzzable", name: "fluoride_defaults",
defaults: ["bluetooth_cflags"], defaults: ["bluetooth_cflags"],
cflags: [ cflags: [
"-DEXPORT_SYMBOL=__attribute__((visibility(\"default\")))", "-DEXPORT_SYMBOL=__attribute__((visibility(\"default\")))",
"-DLOG_NDEBUG=1", "-DLOG_NDEBUG=1",
"-fvisibility=hidden", "-fvisibility=hidden",
], ],
}
cc_defaults {
name: "fluoride_defaults",
target: { target: {
android: { android: {
test_config_template: ":BluetoothTestConfigTemplate", test_config_template: ":BluetoothTestConfigTemplate",
...@@ -29,5 +23,4 @@ cc_defaults { ...@@ -29,5 +23,4 @@ cc_defaults {
}, },
}, },
}, },
defaults: ["fluoride_types_defaults_fuzzable"],
} }
...@@ -32,7 +32,7 @@ cc_library_headers { ...@@ -32,7 +32,7 @@ cc_library_headers {
cc_library_static { cc_library_static {
name: "libbluetooth-types", name: "libbluetooth-types",
vendor_available: true, vendor_available: true,
defaults: ["fluoride_types_defaults_fuzzable"], defaults: ["fluoride_defaults"],
cflags: [ cflags: [
/* we export all classes, so change default visibility, instead of having EXPORT_SYMBOL on each class*/ /* we export all classes, so change default visibility, instead of having EXPORT_SYMBOL on each class*/
"-fvisibility=default", "-fvisibility=default",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment