Skip to content

Commit 67230a4

Browse files
committed
Add .so phase to Makefile and Generator
1 parent 1c63ca4 commit 67230a4

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ build_impl:
5151
@swift build -c $(CONFIG) $(SWIFT_OPTS) \
5252
-Xswiftc "-target" -Xswiftc "x86_64-apple-macosx10.12" \
5353
| tee $(LAST_LOG)
54+
@clang -g \
55+
-Xlinker $(PYTHON_LINKED_LIB) \
56+
-Xlinker $(PWD)/.build/$(CONFIG)/lib$(PLUGIN_NAME).dylib \
57+
-shared -o .build/$(PLUGIN_NAME).so
5458

5559
# Running tests with custom versions of Python
5660
# USE_PYTHON=/usr/local/Cellar/python/3.6.4_4/Frameworks/Python.framework/Versions/3.6/Python make test

PluginGenerator/Makefile.tpl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ build_impl:
4646
@swift build -c $(CONFIG) $(SWIFT_OPTS) \
4747
-Xswiftc "-target" -Xswiftc "x86_64-apple-macosx10.12" \
4848
| tee $(LAST_LOG)
49+
@clang -g \
50+
-Xlinker $(PYTHON_LINKED_LIB) \
51+
-Xlinker $(PWD)/.build/$(CONFIG)/lib$(PLUGIN_NAME).dylib \
52+
-shared -o .build/$(PLUGIN_NAME).so
4953

5054
.PHONY: test
5155
test_b: CONFIG=debug

0 commit comments

Comments
 (0)