diff --git a/build/third_party_gn/bounds_checking_function/BUILD.gn b/build/third_party_gn/bounds_checking_function/BUILD.gn index bdf5b5648ed6b37c1d4963d3f846a87be1308a5e..24013d17b359367f79ee4ec39308a9376702325b 100644 --- a/build/third_party_gn/bounds_checking_function/BUILD.gn +++ b/build/third_party_gn/bounds_checking_function/BUILD.gn @@ -39,7 +39,7 @@ SEC_SHARED_PART_NAME = "bounds_checking_function" ohos_shared_library("libsec_shared") { stack_protector_ret = false sources = libsec_sources - all_dependent_configs = [ ":libsec_public_config" ] + public_configs = [ ":libsec_public_config" ] cflags = [ "-D_INC_STRING_S", "-D_INC_WCHAR_S", diff --git a/build/toolchain/mac/linker_driver.py b/build/toolchain/mac/linker_driver.py index d0b344e487b39670855c4a440febee7650c4e42e..7e11c92365e48cf0d08c4dd7d9163b14b9c6740b 100755 --- a/build/toolchain/mac/linker_driver.py +++ b/build/toolchain/mac/linker_driver.py @@ -55,11 +55,11 @@ def main(args): if len(args) < 2: raise RuntimeError("Usage: linker_driver.py [linker-invocation]") - for i in range(len(args)): - if args[i] != '--developer_dir': + for x in range(len(args)): + if args[x] != '--developer_dir': continue - os.environ['DEVELOPER_DIR'] = args[i + 1] - del args[i:i + 2] + os.environ['DEVELOPER_DIR'] = args[x + 1] + del args[x:x + 2] break # Collect arguments to the linker driver (this script) and remove them from