diff options
author | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2020-02-12 15:10:29 +0000 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2020-02-18 15:37:48 +0000 |
commit | 1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd (patch) | |
tree | 64a11a74ddff023e70cf55a51fc4d11b29a5fdda /config.mk.dist | |
parent | 4c175c8b8e124961beb22b8f034fe16e8d3798d0 (diff) | |
download | arm-optimized-routines-1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd.tar.gz |
string: change build system to avoid fragile includes
Including multiple asm source files into a single top level file
can cause problems, this can be fixed by having one top level
file per target specific source file, but for maintenance and
clarity it's better to use the sub directory structure for selecting
which files to build.
This requires a new ARCH make variable setting in config.mk which
must be consistent with the target of CC.
Note: the __ARM_FEATURE_SVE checks are moved into the SVE asm code.
This is not entirely right: the feature test macro is for ACLE, not
asm support, but this patch is not supposed to change the produced
binaries and some toolchains (e.g. older clang) does not support SVE
instructions. The intention is to remove these checks eventually
and always build all asm code and only support new toolchains (the
test code will only test the SVE variants if there is target support
for it though).
Diffstat (limited to 'config.mk.dist')
-rw-r--r-- | config.mk.dist | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/config.mk.dist b/config.mk.dist index 301b5f9..3f179d8 100644 --- a/config.mk.dist +++ b/config.mk.dist @@ -6,15 +6,20 @@ # Subprojects to build SUBS = math string -HOST_CC = gcc -HOST_CFLAGS = -std=c99 -O2 -HOST_CFLAGS += -Wall -Wno-unused-function +# Target architecture: aarch64, arm or x86_64 +ARCH = aarch64 +# Compiler for the target CC = $(CROSS_COMPILE)gcc CFLAGS = -std=c99 -pipe -O3 CFLAGS += -Wall -Wno-missing-braces CFLAGS += -Werror=implicit-function-declaration +# Used for test case generator that is executed on the host +HOST_CC = gcc +HOST_CFLAGS = -std=c99 -O2 +HOST_CFLAGS += -Wall -Wno-unused-function + # Enable debug info. HOST_CFLAGS += -g CFLAGS += -g |