diff --git a/.travis.yml b/.travis.yml
index c914f5251f9ab27d7be14b3306774dc5c7d156f1..7839382d776a96e6ccd84f2137998f93b389dd4e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -2,7 +2,6 @@ language: rust
 addons:
   apt:
     packages:
-      - yasm
       - nasm
 
 before_install:
diff --git a/appveyor.yml b/appveyor.yml
index c6788c6855b62bc9dee88c8de6a802b40e8cb8ef..76110acae5465895c179c994328c2c596b277e99 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -8,7 +8,6 @@ environment:
 install:
     - call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
     - appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
-    - appveyor DownloadFile http://www.tortall.net/projects/yasm/releases/yasm-1.3.0-win64.exe -FileName yasm.exe
     - appveyor DownloadFile https://www.nasm.us/pub/nasm/releasebuilds/2.13.03/win64/nasm-2.13.03-win64.zip -FileName nasm.zip
     - 7z e -y nasm.zip
     - rustup-init -yv --default-toolchain %channel% --default-host %target%
diff --git a/build.rs b/build.rs
index cc6a321c8f4f5b807c22587d716844309498de77..4a93a19994b91298d7fb8476216a539407935e0c 100644
--- a/build.rs
+++ b/build.rs
@@ -51,6 +51,7 @@ fn main() {
         .define("CONFIG_DEBUG", (debug as u8).to_string())
         .define("CONFIG_ANALYZER", "0")
         .define("ENABLE_DOCS", "0")
+        .define("ENABLE_NASM", "1")
         .define("ENABLE_TESTS", "0")
         .no_build_target(cfg!(windows))
         .build();