aboutsummaryrefslogtreecommitdiff
path: root/Mkfiles/vc9/genperf/run.bat
diff options
context:
space:
mode:
Diffstat (limited to 'Mkfiles/vc9/genperf/run.bat')
-rw-r--r--Mkfiles/vc9/genperf/run.bat22
1 files changed, 22 insertions, 0 deletions
diff --git a/Mkfiles/vc9/genperf/run.bat b/Mkfiles/vc9/genperf/run.bat
new file mode 100644
index 0000000..9c22b57
--- /dev/null
+++ b/Mkfiles/vc9/genperf/run.bat
@@ -0,0 +1,22 @@
+cd ..\..\..
+@echo off
+for /f "usebackq tokens=1*" %%f in (`reg query HKCR\Python.File\shell\open\command`) do (set _my_=%%f %%g)
+goto next%errorlevel%
+
+:next1
+echo Building without Python ...
+goto therest
+
+:next0
+echo Building with Python ...
+set _res_=%_my_:*REG_SZ=%
+set _end_=%_res_:*exe"=%
+call set _python_=%%_res_:%_end_%=%%
+call %_python_% modules\arch\x86\gen_x86_insn.py
+
+:therest
+@echo on
+%1 x86insn_nasm.gperf x86insn_nasm.c
+%1 x86insn_gas.gperf x86insn_gas.c
+%1 modules\arch\x86\x86cpu.gperf x86cpu.c
+%1 modules\arch\x86\x86regtmod.gperf x86regtmod.c