prepare for gccgo docs

This commit is contained in:
Unbit
2013-11-11 05:44:51 +01:00
parent 42f45bfbf9
commit b68ffc842d
2 changed files with 9 additions and 5 deletions
+4 -1
View File
@@ -1,10 +1,13 @@
PYTHON := python
all:
$(PYTHON) uwsgiconfig.py --build $(PROFILE)
$(PYTHON) uwsgiconfig.py --build
clean:
$(PYTHON) uwsgiconfig.py --clean
check:
$(PYTHON) uwsgiconfig.py --check
%:
$(PYTHON) uwsgiconfig.py --build $@
+5 -4
View File
@@ -6,7 +6,8 @@ LDFLAGS = []
LIBS = ['-lgo']
GCC_LIST = ['gccgo_plugin', 'uwsgi.go']
#def post_build(config):
# if os.system("objcopy -j .go_export plugins/gccgo/uwsgi.go.o plugins/gccgo/uwsgi.gox") != 0:
# os._exit(1)
# print("*** uwsgi.gox available in %s/plugins/gccgo ***" % os.getcwd())
def post_build(config):
if os.path.exists('plugins/gccgo/uwsgi.go.o'):
if os.system("objcopy -j .go_export plugins/gccgo/uwsgi.go.o plugins/gccgo/uwsgi.gox") != 0:
os._exit(1)
print("*** uwsgi.gox available in %s/plugins/gccgo ***" % os.getcwd())