gn2bp: Fix to use set for target.outputs
Test: ./update_results.sh
Change-Id: Ia5aff5ebcba3574c7b3871482a859e7fc2589ef4
diff --git a/tools/gn2bp/gen_android_bp b/tools/gn2bp/gen_android_bp
index 49217f0..7524b35 100755
--- a/tools/gn2bp/gen_android_bp
+++ b/tools/gn2bp/gen_android_bp
@@ -848,7 +848,7 @@
if target.script == '//base/android/jni_generator/jni_generator.py':
# fix target.output directory to match #include statements.
- target.outputs = [re.sub('^jni_headers/', '', out) for out in target.outputs]
+ target.outputs = {re.sub('^jni_headers/', '', out) for out in target.outputs}
# android_jar.classes should be part of the tools as it list implicit classes
# for the script to generate JNI headers.