From 4d874d4f7fb3df8fe4e357206f0465c142a2787b Mon Sep 17 00:00:00 2001 From: Redo Date: Sat, 5 Nov 2022 12:34:30 -0600 Subject: [PATCH] add native linux compile sh --- .gitignore | 1 + sim/compiled_sim.bat | 4 +--- sim/compiled_sim.sh | 1 + 3 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 sim/compiled_sim.sh diff --git a/.gitignore b/.gitignore index b8dcfbf..83b6764 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ savedata/* +*.so diff --git a/sim/compiled_sim.bat b/sim/compiled_sim.bat index e3b7520..fcf7e99 100644 --- a/sim/compiled_sim.bat +++ b/sim/compiled_sim.bat @@ -1,4 +1,2 @@ -set cargs=-shared -Wall -Werror -Ofast -gcc compiled_sim.c -o compiled_sim.dll %cargs% -gcc compiled_sim.c -o compiled_sim.so %cargs% +gcc compiled_sim.c -o compiled_sim.dll -shared -Wall -Werror -Ofast pause diff --git a/sim/compiled_sim.sh b/sim/compiled_sim.sh new file mode 100644 index 0000000..6833143 --- /dev/null +++ b/sim/compiled_sim.sh @@ -0,0 +1 @@ +gcc compiled_sim.c -o compiled_sim.so -shared -Wall -Werror -Ofast -fPIC