aboutsummaryrefslogtreecommitdiff
path: root/aidl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'aidl.cpp')
-rw-r--r--aidl.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/aidl.cpp b/aidl.cpp
index e0eef0d2..88a42f8b 100644
--- a/aidl.cpp
+++ b/aidl.cpp
@@ -548,6 +548,7 @@ AidlError load_and_validate_aidl(
const std::vector<std::string>& preprocessed_files,
const std::vector<std::string>& import_paths,
const std::string& input_file_name,
+ const bool generate_traces,
const IoDelegate& io_delegate,
TypeNamespace* types,
std::unique_ptr<AidlInterface>* returned_interface,
@@ -633,6 +634,8 @@ AidlError load_and_validate_aidl(
interface->SetLanguageType(types->GetInterfaceType(*interface));
+ interface->SetGenerateTraces(generate_traces);
+
for (const auto& import : p.GetImports()) {
// If we skipped an unresolved import above (see comment there) we'll have
// an empty bucket here.
@@ -685,6 +688,7 @@ int compile_aidl_to_cpp(const CppOptions& options,
std::vector<std::string>{}, // no preprocessed files
options.ImportPaths(),
options.InputFileName(),
+ options.ShouldGenTraces(),
io_delegate,
types.get(),
&interface,
@@ -710,6 +714,7 @@ int compile_aidl_to_java(const JavaOptions& options,
options.preprocessed_files_,
options.import_paths_,
options.input_file_name_,
+ options.gen_traces_,
io_delegate,
types.get(),
&interface,