File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
lldb/test/API/lang/swift/clangimporter/objcmain_conflicting_dylibs Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -12,11 +12,9 @@ ifneq "$(CODESIGN)" ""
12
12
endif
13
13
14
14
lib% .dylib : % .swift
15
- $(SWIFTC ) -g -Onone $^ -emit-library -module-name $(shell basename $< .swift) -emit-module -Xlinker -install_name -Xlinker @executable_path/$@ -Xcc -I$(SRCDIR ) -Xcc -I$(SRCDIR ) /$(shell basename $< .swift) $(SWIFTFLAGS ) -emit-objc-header-path $(shell basename $< .swift) .h \
16
- -toolchain-stdlib-rpath
17
- ifneq "$(CODESIGN ) " ""
18
- $(CODESIGN) -s - "$@"
19
- endif
15
+ $(MAKE ) MAKE_DSYM=YES \
16
+ DYLIB_NAME=$(shell basename $< .swift) \
17
+ VPATH=$(SRCDIR ) -I $(SRCDIR ) -f $(SRCDIR ) /dylib.mk all
20
18
21
19
clean ::
22
20
rm -rf * .swiftmodule * .swiftdoc * .dSYM * ~ lib* .dylib a.out * .o
Original file line number Diff line number Diff line change
1
+ DYLIB_ONLY := YES
2
+ DYLIB_SWIFT_SOURCES := $(DYLIB_NAME ) .swift
3
+ SWIFT_OBJC_HEADER = $(DYLIB_NAME ) .h
4
+ SWIFTFLAGS_EXTRAS = -Xcc -I$(SRCDIR ) -I$(SRCDIR ) /$(DYLIB_NAME )
5
+
6
+ include Makefile.rules
You can’t perform that action at this time.
0 commit comments