forked from OpenCombine/OpenCombine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
50 lines (37 loc) · 1.12 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
SWIFT_EXE=swift
SWIFT_TEST_FLAGS=
SWIFT_BUILD_FLAGS=-Xcc -Wunguarded-availability
debug:
$(SWIFT_EXE) build -c debug $(SWIFT_BUILD_FLAGS)
release:
$(SWIFT_EXE) build -c release $(SWIFT_BUILD_FLAGS)
test-debug:
$(SWIFT_EXE) test -c debug $(SWIFT_BUILD_FLAGS) $(SWIFT_TEST_FLAGS)
test-debug-sanitize-thread:
$(SWIFT_EXE) test -c debug --sanitize thread $(SWIFT_BUILD_FLAGS) $(SWIFT_TEST_FLAGS)
test-release:
$(SWIFT_EXE) test -c release $(SWIFT_BUILD_FLAGS) $(SWIFT_TEST_FLAGS)
swift-version:
$(SWIFT_EXE) -version
test-compatibility:
OPENCOMBINE_COMPATIBILITY_TEST=1 $(SWIFT_EXE) test
library-evolution:
OPENCOMBINE_LIBRARY_EVOLUTION=1 $(SWIFT_EXE) build
module-interface:
xcodebuild build -scheme OpenCombine -sdk macosx -destination "platform=macOS" BUILD_LIBRARY_FOR_DISTRIBUTION=1
disable-oslock-private:
OPENCOMBINE_OSLOCK_PRIVATE=0 $(SWIFT_EXE) build
gyb:
$(shell ./utils/recursively_gyb.sh)
clean:
rm -rf .build
.PHONY: debug release \
test-debug \
test-release \
swift-version \
test-compatibility-debug \
library-evolution \
module-interface \
disable-oslock-private \
gyb \
clean