Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions SConstruct
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-

# Copyright (c) 2016-2025 Arm Limited.
# Copyright (c) 2016-2026 Arm Limited.
#
# SPDX-License-Identifier: MIT
#
Expand Down Expand Up @@ -448,16 +448,19 @@ env['CC'] = env['compiler_cache']+ " " + compiler_prefix + c_compiler
env['CXX'] = env['compiler_cache']+ " " + compiler_prefix + cpp_compiler
env['LD'] = toolchain_prefix + "ld"
env['AS'] = toolchain_prefix + "as"
env['AR'] = toolchain_prefix + "ar"
env['RANLIB'] = toolchain_prefix + "ranlib"

if env['os'] == 'windows':
env['AR'] = "llvm-lib"
env['RANLIB'] = "llvm-ranlib"
env['AS'] = env['CC']
env['ASFLAGS'] = []
else:
env['AR'] = toolchain_prefix + "ar"

env['RANLIB'] = toolchain_prefix + "ranlib"
elif env['os'] == 'android':
# If --target is specified in the NDK, we need to relay it to the assembler
# See https://developer.android.com/ndk/guides/other_build_systems#overview
# for more information on different ways to build.
env.Append(ASFLAGS = env['extra_cc_flags'])

print("Using compilers:")
print("CC", env['CC'])
Expand Down