File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
22
3- # Copyright (c) 2016-2025 Arm Limited.
3+ # Copyright (c) 2016-2026 Arm Limited.
44#
55# SPDX-License-Identifier: MIT
66#
@@ -448,16 +448,19 @@ env['CC'] = env['compiler_cache']+ " " + compiler_prefix + c_compiler
448448env ['CXX' ] = env ['compiler_cache' ]+ " " + compiler_prefix + cpp_compiler
449449env ['LD' ] = toolchain_prefix + "ld"
450450env ['AS' ] = toolchain_prefix + "as"
451+ env ['AR' ] = toolchain_prefix + "ar"
452+ env ['RANLIB' ] = toolchain_prefix + "ranlib"
451453
452454if env ['os' ] == 'windows' :
453455 env ['AR' ] = "llvm-lib"
454456 env ['RANLIB' ] = "llvm-ranlib"
455457 env ['AS' ] = env ['CC' ]
456458 env ['ASFLAGS' ] = []
457- else :
458- env ['AR' ] = toolchain_prefix + "ar"
459-
460- env ['RANLIB' ] = toolchain_prefix + "ranlib"
459+ elif env ['os' ] == 'android' :
460+ # If --target is specified in the NDK, we need to relay it to the assembler
461+ # See https://developer.android.com/ndk/guides/other_build_systems#overview
462+ # for more information on different ways to build.
463+ env .Append (ASFLAGS = env ['extra_cc_flags' ])
461464
462465print ("Using compilers:" )
463466print ("CC" , env ['CC' ])
You can’t perform that action at this time.
0 commit comments