macosx64-aarch64.py (1420B)
1 # This Source Code Form is subject to the terms of the Mozilla Public 2 # License, v. 2.0. If a copy of the MPL was not distributed with this 3 # file, You can obtain one at http://mozilla.org/MPL/2.0/. 4 5 import os 6 7 import mozharness 8 9 external_tools_path = os.path.join( 10 os.path.abspath(os.path.dirname(os.path.dirname(mozharness.__file__))), 11 "external_tools", 12 ) 13 14 config = { 15 "exes": { 16 "gittool.py": [os.path.join(external_tools_path, "gittool.py")], 17 "python3": "python3", 18 }, 19 "dump_syms_binary": "{}/dump_syms/dump_syms".format(os.environ["MOZ_FETCHES_DIR"]), 20 "arch": "aarch64", 21 "operating_system": "darwin", 22 "partial_env": { 23 "CFLAGS": ( 24 "-target aarch64-apple-darwin -mcpu=apple-a12 " 25 "-isysroot {MOZ_FETCHES_DIR}/MacOSX26.2.sdk " 26 "-mmacosx-version-min=11.0".format( 27 MOZ_FETCHES_DIR=os.environ["MOZ_FETCHES_DIR"] 28 ) 29 ), 30 "LDFLAGS": ( 31 "-target aarch64-apple-darwin -mcpu=apple-a12 " 32 "-isysroot {MOZ_FETCHES_DIR}/MacOSX26.2.sdk " 33 "-mmacosx-version-min=11.0".format( 34 MOZ_FETCHES_DIR=os.environ["MOZ_FETCHES_DIR"] 35 ) 36 ), 37 "PATH": ( 38 "{MOZ_FETCHES_DIR}/clang/bin/:{MOZ_FETCHES_DIR}/cctools/bin/:%(PATH)s".format( 39 MOZ_FETCHES_DIR=os.environ["MOZ_FETCHES_DIR"] 40 ) 41 ), 42 }, 43 }