[TSan] remove artifacts from gotsan build in 'make clean' command
[blocksruntime.git] / make / platform / darwin_fat.mk
blob54936a39ffb93f291cbb9641f884fa6267396694
1 # Configurations to build
3 # This section must define:
4 # Description - A description of this target.
5 # Configs - The names of each configuration to build; this is used to build
6 # multiple libraries inside a single configuration file (for
7 # example, Debug and Release builds, or builds with and without
8 # software floating point).
10 # This section must define one of:
11 # UniveralArchs - A list of architectures to build for, when using universal build
12 # support (e.g., on Darwin). This should only be used to build fat
13 # libraries, simply building multiple libraries for different
14 # architectures should do so using distinct configs, with the
15 # appropriate choices for CC and CFLAGS.
17 # Arch - The target architecture; this must match the compiler-rt name for the
18 # architecture and is used to find the appropriate function
19 # implementations.
21 # When not universal builds, this section may define:
22 # Arch.<Config Name> - Set the target architecture on a per-config basis.
24 Description := Target for building universal libraries for Darwin.
26 Configs := Debug Release Profile
27 UniversalArchs := i386 x86_64
29 # Platform Options
31 # This section may override any of the variables in make/options.mk, using:
32 # <Option Name> := ... option value ...
34 # See make/options.mk for the available options and their meanings. Options can
35 # be override on a per-config, per-arch, or per-config-and-arch basis using:
36 # <Option Name>.<Config Name> := ...
37 # <Option Name>.<Arch Name> := ...
38 # <Option Name>.<Config Name>.<Arch Name> := ...
40 CC := clang
42 CFLAGS := -Wall -Werror
43 CFLAGS.Debug := $(CFLAGS) -g
44 CFLAGS.Release := $(CFLAGS) -O3 -fomit-frame-pointer
45 CFLAGS.Profile := $(CFLAGS) -pg -g
47 FUNCTIONS.i386 := $(CommonFunctions) $(ArchFunctions.i386)
48 FUNCTIONS.ppc := $(CommonFunctions) $(ArchFunctions.ppc)
49 FUNCTIONS.x86_64 := $(CommonFunctions) $(ArchFunctions.x86_64)
50 FUNCTIONS.armv5 := $(CommonFunctions) $(ArchFunctions.armv5)
51 FUNCTIONS.armv6 := $(CommonFunctions) $(ArchFunctions.armv6)
52 FUNCTIONS.armv7 := $(CommonFunctions) $(ArchFunctions.armv7)
54 OPTIMIZED.Debug := 0
56 VISIBILITY_HIDDEN := 1