File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
lldb/test/API/lang/swift/clangimporter/objcmain_conflicting_dylibs Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,10 @@ ifneq "$(CODESIGN)" ""
1212endif
1313
1414lib% .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- ifneq " $( CODESIGN ) " ""
17- $(CODESIGN) -s - "$@"
18- endif
15+ mkdir -p $( BUILDDIR ) / $( shell basename $< .swift)
16+ $( MAKE ) MAKE_DSYM=YES \
17+ DYLIB_NAME= $( shell basename $< .swift) \
18+ VPATH= $( SRCDIR ) -I $( SRCDIR ) -f $( SRCDIR ) /dylib.mk all
1919
2020clean ::
2121 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