nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60e3b2a
)
Java FFI: Makefile adds the compilation dir to the Java CLASSPATH
author
Alexis Laferrière
<alexis.laf@xymus.net>
Wed, 27 Feb 2019 16:19:52 +0000
(11:19 -0500)
committer
Alexis Laferrière
<alexis.laf@xymus.net>
Wed, 27 Feb 2019 17:00:11 +0000
(12:00 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
src/compiler/abstract_compiler.nit
patch
|
blob
|
history
diff --git
a/src/compiler/abstract_compiler.nit
b/src/compiler/abstract_compiler.nit
index
9753100
..
e786374
100644
(file)
--- a/
src/compiler/abstract_compiler.nit
+++ b/
src/compiler/abstract_compiler.nit
@@
-465,6
+465,13
@@
ifneq ($(findstring MINGW64,$(uname_S)),)
CFLAGS += -Wno-pointer-to-int-cast -Wno-int-to-pointer-cast
endif
+# Add the compilation dir to the Java CLASSPATH
+ifeq ($(CLASSPATH),)
+ CLASSPATH := .
+else
+ CLASSPATH := $(CLASSPATH):.
+endif
+
"""
makefile.write("all: {outpath}\n")