File tree Expand file tree Collapse file tree 2 files changed +15
-14
lines changed
lldb/test/API/lang/swift/parseable_interfaces/static Expand file tree Collapse file tree 2 files changed +15
-14
lines changed Original file line number Diff line number Diff line change @@ -21,20 +21,23 @@ staticA:
21
21
# Because we override VPATH to point to the build directory, we need to pass
22
22
# down SWIFTC too (it's default value is relative to VPATH)
23
23
$(MAKE ) MAKE_DSYM=$(MAKE_DSYM ) CC=$(CC ) SWIFTC=$(SWIFTC ) \
24
- ARCH=$(ARCH ) DSYMUTIL=$(DSYMUTIL ) VPATH=$(BUILDDIR ) SWIFTSDKROOT=$(SWIFTSDKROOT ) \
24
+ ARCH=$(ARCH ) DSYMUTIL=$(DSYMUTIL ) VPATH=$(BUILDDIR ) \
25
+ SWIFTSDKROOT=$(SWIFTSDKROOT ) \
25
26
SWIFT_MODULE_CACHE_FLAGS=" $( SWIFT_MODULE_CACHE_FLAGS) " \
26
27
BASENAME=AA -f $(SRCDIR ) /libs/Makefile static_only
27
28
28
29
staticB :
29
30
$(MAKE ) MAKE_DSYM=$(MAKE_DSYM ) CC=$(CC ) SWIFTC=$(SWIFTC ) \
30
- ARCH=$(ARCH ) DSYMUTIL=$(DSYMUTIL ) VPATH=$(BUILDDIR ) SWIFTSDKROOT=$(SWIFTSDKROOT ) \
31
+ ARCH=$(ARCH ) DSYMUTIL=$(DSYMUTIL ) VPATH=$(BUILDDIR ) \
32
+ SWIFTSDKROOT=$(SWIFTSDKROOT ) \
31
33
SWIFT_MODULE_CACHE_FLAGS=" $( SWIFT_MODULE_CACHE_FLAGS) " \
32
34
BASENAME=BB SWIFTFLAGS_EXTRAS=" -I$( BUILDDIR) " \
33
35
LD_EXTRAS=" -L$( BUILDDIR) " -f $(SRCDIR ) /libs/Makefile static_only
34
36
35
37
staticC :
36
38
$(MAKE ) MAKE_DSYM=$(MAKE_DSYM ) CC=$(CC ) SWIFTC=$(SWIFTC ) \
37
- ARCH=$(ARCH ) DSYMUTIL=$(DSYMUTIL ) VPATH=$(BUILDDIR ) SWIFTSDKROOT=$(SWIFTSDKROOT ) \
39
+ ARCH=$(ARCH ) DSYMUTIL=$(DSYMUTIL ) VPATH=$(BUILDDIR ) \
40
+ SWIFTSDKROOT=$(SWIFTSDKROOT ) \
38
41
SWIFT_MODULE_CACHE_FLAGS=" $( SWIFT_MODULE_CACHE_FLAGS) " \
39
42
BASENAME=CC -f $(SRCDIR ) /libs/Makefile static_only
40
43
Original file line number Diff line number Diff line change 3
3
DYLIB_NAME := $(BASENAME )
4
4
DYLIB_SWIFT_SOURCES := libs/$(BASENAME ) .swift
5
5
6
- # Don't use the default swift flags, as we don't want -g for the libraries in
7
- # this test.
8
- SWIFTFLAGS =-Onone -Xfrontend -serialize-debugging-options -parse-as-library -enable-library-evolution
6
+ # Don't use -g for the libraries in this test.
7
+ DEBUG_INFO_FLAG :=
8
+ SWIFTFLAGS_EXTRAS := -enable-library-evolution
9
9
10
10
# Don't include the wrapped .swiftmodule on Linux to make sure we use
11
11
# the .swiftinterface. The issue here is that if the .swiftmodule is wrapped
12
12
# and linked into the library, LLDB may find it there and load it before the
13
13
# .swiftinterface loading path can be exercised.
14
14
EXCLUDE_WRAPPED_SWIFTMODULE =1
15
15
16
- # Activates the rules for generating a static lib based on the .o files
17
- # corresponding to the dylib swift sources above.
18
- ARCHIVE_NAME := lib$(BASENAME ) .a
19
- ARCHIVE_OBJECTS = $(strip $(DYLIB_SWIFT_SOURCES:.swift=.o ) )
20
-
21
- $(ARCHIVE_NAME ) : $(BASENAME ) .swiftmodule
22
-
23
16
include Makefile.rules
24
17
25
- # Generate only the static lib (all would generate a dylib as well).
18
+ # These are *not* Makefile.rules config variables.
19
+ ARCHIVE_NAME := lib$(BASENAME ) .a
20
+ ARCHIVE_OBJECTS := $(strip $(DYLIB_SWIFT_SOURCES:.swift=.o ) )
21
+ $(ARCHIVE_NAME ) : $(ARCHIVE_OBJECTS ) $(BASENAME ) .swiftmodule
22
+ $(AR ) $(ARFLAGS ) $@ $<
23
+
26
24
static_only : $(ARCHIVE_NAME )
27
25
28
26
clean ::
You can’t perform that action at this time.
0 commit comments