Commit 12c0b57a authored by Rye Mutt's avatar Rye Mutt 🍞
Browse files

Update windows build

Add avx flag for windows codegen
parent 4fce01a2
...@@ -62,10 +62,19 @@ pushd "$top/nghttp2" ...@@ -62,10 +62,19 @@ pushd "$top/nghttp2"
windows*) windows*)
load_vsvars load_vsvars
if [ "$AUTOBUILD_ADDRSIZE" = 32 ]
then
archflags=""
else
archflags="/arch:AVX"
fi
mkdir -p "build" mkdir -p "build"
pushd "build" pushd "build"
cmake .. -G"$AUTOBUILD_WIN_CMAKE_GEN" -T host=x64 -DENABLE_LIB_ONLY=ON \
-DCMAKE_SYSTEM_VERSION="10.0.17763.0" -DCMAKE_INSTALL_PREFIX="$(cygpath -m "$stage")" cmake -E env CFLAGS="$archflags" CXXFLAGS="$archflags" \
cmake .. -G "$AUTOBUILD_WIN_CMAKE_GEN" -A "$AUTOBUILD_WIN_VSPLATFORM" -DENABLE_LIB_ONLY=ON \
-DCMAKE_INSTALL_PREFIX="$(cygpath -m "$stage")"
cmake --build . --config Debug --clean-first cmake --build . --config Debug --clean-first
cmake --build . --config Release --clean-first cmake --build . --config Release --clean-first
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment