Open EwoutH opened 5 years ago
@IlyaFinkelshteyn What do you think?
@IlyaFinkelshteyn Could you take a second look at this? Nasm is a very small package (<1MB) which simplifies compiling many high-performance libraries.
In the meantime that link is a bit outdated https://www.nasm.us/pub/nasm/releasebuilds/?C=M;O=D may be preferable.
As an alternative to the pre-installation one may use:
manually download, unpack and place in PATH
, example for CMD:
rem have NASM_VERSION in environment vars, for example as 2.15.05
rem have NASM_ARCHIVE in environment vars, as nasm-%NASM_VERSION%-win64.zip
rem have %NASM_ARCHIVE% in cached files
if not exist "%NASM_ARCHIVE%" appveyor DownloadFile "https://www.nasm.us/pub/nasm/releasebuilds/%NASM_VERSION%/win64/%NASM_ARCHIVE%"
7z e "%NASM_ARCHIVE%" 1>NUL
move nasm*.exe tools 1>NUL
set "PATH=%CD%\tools;%PATH%"
rem have YASM_ARCHIVE in environment var, for example as yasm-1.3.0-win64.exe
rem have %YASM_ARCHIVE% in cached files
if not exist "%NASM_ARCHIVE%" appveyor DownloadFile "http://www.tortall.net/projects/yasm/releases/%YASM_ARCHIVE%"
copy yasm*.exe tools\yasm.exe 1>NUL
set "PATH=%CD%\tools;%PATH%"
+1 from me, Node.js rely on this. I use choco
to install it every time.
Nasm is used for a lot of high-performance projects with SIMD assembly code. It's a very small and quick install but adds a lot of extra code. Having it installed by default would be very useful.