From 4e0ef35c509205def554d1f8e752f94215a9d770 Mon Sep 17 00:00:00 2001 From: Benjamin Barenblat Date: Tue, 17 Jul 2018 12:29:18 -0400 Subject: Only build libcrypto.a MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We’re not currently using any other part of BoringSSL, so don’t waste time building anything else. --- Setup.hs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Setup.hs b/Setup.hs index 529524a..f223510 100644 --- a/Setup.hs +++ b/Setup.hs @@ -45,6 +45,7 @@ boringsslBuild flags = do -- Build BoringSSL. let buildDir = boringsslDir "build" mkdir buildDir + let cryptoTarget = "crypto" "libcrypto.a" cmd [ "cmake" , "-GNinja" @@ -53,11 +54,11 @@ boringsslBuild flags = do , "-B" ++ buildDir , "-H" ++ boringsslDir "src" ] - cmd ["ninja", "-C", buildDir] + cmd ["ninja", "-C", buildDir, cryptoTarget] -- Rename BoringSSL's libraries so we don't accidentally grab OpenSSL. mkdir boringsslLibDir Utils.installOrdinaryFile v - (buildDir "crypto" "libcrypto.a") + (buildDir cryptoTarget) (boringsslLibDir "libbtls_crypto.a") where v = Setup.fromFlag (Setup.configVerbosity flags) -- cgit v1.2.3