Merge "Include 'name' in props; use post-sanitize module name."
This commit is contained in:
@@ -241,9 +241,6 @@ def build_props(install_dir):
|
|||||||
target_arch)
|
target_arch)
|
||||||
|
|
||||||
module_name = prop['name']
|
module_name = prop['name']
|
||||||
notice_path = 'NOTICE_FILES/' + module_name + '.txt'
|
|
||||||
if os.path.exists(os.path.join(bp_dir, notice_path)):
|
|
||||||
prop['notice'] = notice_path
|
|
||||||
|
|
||||||
# Is this sanitized variant?
|
# Is this sanitized variant?
|
||||||
if 'sanitize' in prop:
|
if 'sanitize' in prop:
|
||||||
@@ -254,7 +251,11 @@ def build_props(install_dir):
|
|||||||
for k in list(prop.keys()):
|
for k in list(prop.keys()):
|
||||||
if not k in SANITIZER_VARIANT_PROPS:
|
if not k in SANITIZER_VARIANT_PROPS:
|
||||||
del prop[k]
|
del prop[k]
|
||||||
prop = {sanitizer_type: prop}
|
prop = {'name': module_name, sanitizer_type: prop}
|
||||||
|
|
||||||
|
notice_path = 'NOTICE_FILES/' + module_name + '.txt'
|
||||||
|
if os.path.exists(os.path.join(bp_dir, notice_path)):
|
||||||
|
prop['notice'] = notice_path
|
||||||
|
|
||||||
variation_dict = props[target_arch][variation]
|
variation_dict = props[target_arch][variation]
|
||||||
if not module_name in variation_dict:
|
if not module_name in variation_dict:
|
||||||
|
|||||||
Reference in New Issue
Block a user