brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.9 KiB · 6808df9 Raw
71 lines · plain
1# Example config.mk2#3# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4# See https://llvm.org/LICENSE.txt for license information.5# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6 7# Subprojects to build8# For now, LLVM-libc project will focus only "math" functions.9SUBS = math # string networking10 11# Target architecture: aarch64, arm or x86_6412# For now, LLVM-libc project will focus on x86_64 only.13ARCH = x86_6414 15# Compiler for the target16CC = $(CROSS_COMPILE)gcc17CFLAGS = -std=c99 -pipe -O318CFLAGS += -Wall -Wno-missing-braces19CFLAGS += -Werror=implicit-function-declaration20 21# Used for test case generator that is executed on the host22HOST_CC = gcc23HOST_CFLAGS = -std=c99 -O224HOST_CFLAGS += -Wall -Wno-unused-function25 26# Enable debug info.27HOST_CFLAGS += -g28CFLAGS += -g29 30# Optimize the shared libraries on aarch64 assuming they fit in 1M.31#CFLAGS_SHARED = -fPIC -mcmodel=tiny32 33# Use for cross compilation with gcc.34#CROSS_COMPILE = aarch64-none-linux-gnu-35 36# Use with cross testing.37#EMULATOR = qemu-aarch64-static38#EMULATOR = sh -c 'scp $$1 user@host:/dir && ssh user@host /dir/"$$@"' --39 40# Additional flags for subprojects.41math-cflags =42math-ldlibs =43math-ulpflags =44math-testflags =45string-cflags =46networking-cflags =47 48# Use if mpfr is available on the target for ulp error checking.49#math-ldlibs += -lmpfr -lgmp50#math-cflags += -DUSE_MPFR51 52# Use with gcc.53math-cflags += -frounding-math -fexcess-precision=standard -fno-stack-protector54math-cflags += -ffp-contract=fast -fno-math-errno55 56# Use with clang.57#math-cflags += -ffp-contract=fast58 59# Disable vector math code60#math-cflags += -DWANT_VMATH=061 62# Disable fenv checks63#math-ulpflags = -q -f64#math-testflags = -nostatus65 66# Enable assertion checks.67#networking-cflags += -DWANT_ASSERT68 69# Avoid auto-vectorization of scalar code and unroll loops70networking-cflags += -O2 -fno-tree-vectorize -funroll-loops71