]> granicus.if.org Git - python/commitdiff
Allows nasm to be found on the system-wide path before using the version in externals.
authorSteve Dower <steve.dower@microsoft.com>
Sat, 13 Dec 2014 01:15:18 +0000 (17:15 -0800)
committerSteve Dower <steve.dower@microsoft.com>
Sat, 13 Dec 2014 01:15:18 +0000 (17:15 -0800)
PCbuild/openssl.props

index f964e4cae653f6ee8c63305beb07f8340c941083..b64c3e1ebdebdfa34556cf93205bf399053cabc3 100644 (file)
   
   <Target Name="FindNasm">
     <PropertyGroup>
-      <nasm Condition="$(Platform) == 'Win32'">"$(nasmDir)nasm.exe" -f win32</nasm>
-      <nasm Condition="$(Platform) == 'x64'">"$(nasmDir)nasm.exe" -f win64 -DNEAR -Ox -g</nasm>
+      <nasm Condition="$(Platform) == 'Win32'">nasm.exe -f win32</nasm>
+      <nasm Condition="$(Platform) == 'x64'">nasm.exe -f win64 -DNEAR -Ox -g</nasm>
     </PropertyGroup>
   </Target>
 
   <Target Name="BuildNasmFiles" BeforeTargets="PreBuildEvent" DependsOnTargets="PrepareForBuild;FindNasm" Inputs="@(NasmCompile)" Outputs="@(NasmCompile->'$(IntDir)%(Filename).obj')">
-    <Exec Command='$(nasm) -o "$(IntDir)%(NasmCompile.Filename).obj" "%(NasmCompile.FullPath)"' />
+    <Exec Command='setlocal
+set PATH=%PATH%;$(nasmDir)
+$(nasm) -o "$(IntDir)%(NasmCompile.Filename).obj" "%(NasmCompile.FullPath)"' />
     <ItemGroup>
       <Link Include="$(IntDir)%(NasmCompile.Filename).obj" />
       <Lib Include="$(IntDir)%(NasmCompile.Filename).obj" />