Skip to content

Commit

Permalink
update j2c cmake config
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalgust committed Dec 12, 2024
1 parent 135b3fe commit 4b59078
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions j2c/app/vm/native_std.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
#include <wspiapi.h>
#include <io.h>

c8 *inet_ntop(s32 af, const void *src, c8 *dst, socklen_t size);

#if __JVM_OS_VS__
#include "../utils/dirent_win.h"
#include "../utils/tinycthread.h"
Expand Down
4 changes: 2 additions & 2 deletions j2c/build/.gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.DS_Store
.idea

csource.txt
Thumbs.db

*.exe
app
tools

Expand Down
2 changes: 1 addition & 1 deletion j2c/build/build_console_winx64.bat
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ call :build_jar translator.jar ..\translator\src\main "tools" "." "."
%JAVA_HOME%\bin\java -cp tools/translator.jar com.ebsee.Main ../../minijvm/java/src/main/java/;../../test/minijvm_test/src/main/java/ ../app/generted/classes/ ../app/generted/c/
rem ==============================================================

echo [INFO]build app.exe
echo [INFO]build app.exe , maybe take a while
call :jvm_compile app.exe ..\app %TARGETDIR%

echo completed.
Expand Down
2 changes: 1 addition & 1 deletion j2c/translator/src/main/java/com/ebsee/j2c/AssistLLVM.java
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ static private void genTypeDef(PrintStream ps) {

static private void genJNI(String outpath) {
try {
File f = new File(outpath + "/native_gen.txt");
File f = new File(outpath + "/_native_gen.txt");
FileOutputStream fos = new FileOutputStream(f);
PrintStream ps = new PrintStream(fos);

Expand Down

0 comments on commit 4b59078

Please sign in to comment.