From f3d694a4bc89c90542fa5bfa61ea83624db2c9b9 Mon Sep 17 00:00:00 2001 From: depler Date: Sat, 3 Sep 2022 20:28:18 +0300 Subject: [PATCH] code --- build.bat | 2 +- patch_boringssl.bat | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/build.bat b/build.bat index afdea75..38bfb4c 100644 --- a/build.bat +++ b/build.bat @@ -5,7 +5,7 @@ set ROOT=%~dp0 cd %ROOT%boringssl rmdir /s /q lib -cmake.exe -G "Ninja" -S . -B lib -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=gcc.exe -DCMAKE_C_FLAGS="-Wno-error=stringop-overflow= -Wno-error=array-bounds" +cmake.exe -G "Ninja" -S . -B lib -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=gcc.exe ninja.exe -C lib crypto ssl move /y lib\crypto\libcrypto.a lib\libcrypto.a move /y lib\ssl\libssl.a lib\libssl.a diff --git a/patch_boringssl.bat b/patch_boringssl.bat index e57a9bc..e904445 100644 --- a/patch_boringssl.bat +++ b/patch_boringssl.bat @@ -1,6 +1,9 @@ set patch=c:\msys64\usr\bin\patch.exe +set sed=c:\msys64\usr\bin\sed.exe cd %~dp0boringssl %patch% -p1 < %~dp0patch\boringssl-old-ciphers.patch +%sed% -i 's/-ggdb//g' CMakeLists.txt +%sed% -i 's/-Werror//g' CMakeLists.txt pause \ No newline at end of file