Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: third_party/yasm/patched-yasm/Mkfiles/vc9/genperf/run.bat

Issue 6170009: Update our yasm copy to yasm 1.1.0 (Part 1: yasm side)... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/yasm/patched-yasm/Mkfiles/vc9/genperf/run.bat
===================================================================
--- third_party/yasm/patched-yasm/Mkfiles/vc9/genperf/run.bat (revision 71129)
+++ third_party/yasm/patched-yasm/Mkfiles/vc9/genperf/run.bat (working copy)
@@ -1,18 +1,21 @@
cd ..\..\..
@echo off
-reg query HKCR\Python.File\shell\open\command >nul: 2>&1
-goto answer%errorlevel%
-:answer0
-echo ... building with Python ...
+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
-modules\arch\x86\gen_x86_insn.py
-@echo off
-goto end
-:answer1
-echo ... building without Python ...
-goto end
-:end
-@echo on
%1 x86insn_nasm.gperf x86insn_nasm.c
%1 x86insn_gas.gperf x86insn_gas.c
%1 modules\arch\x86\x86cpu.gperf x86cpu.c

Powered by Google App Engine
This is Rietveld 408576698