Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix
Browse files Browse the repository at this point in the history
andrewsg committed Jul 9, 2024
1 parent 05795a3 commit c0f9308
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions scripts/windows/build.bat
Original file line number Diff line number Diff line change
@@ -38,15 +38,14 @@ FOR %%P IN (3.8, 3.9, 3.10, 3.11, 3.12) DO (

echo "Installing cmake for Python %%P"
py -%%P-64 -m pip install cmake --target=%PIP_TARGET%
set cmake=%TARGET%\Scripts\cmake

@rem Add directory as safe to avoid "detected dubious ownership" fatal issue
git config --global --add safe.directory %cd%
git config --global --add C:/tmpfs/src/github/python-crc32c
git config --global --add safe.directory C:/tmpfs/src/github/python-crc32c
git submodule update --init --recursive

git config --global --add safe.directory %cd%\google_crc32c
git config --global --add C:/tmpfs/src/github/python-crc32c/google_crc32c
git config --global --add safe.directory C:/tmpfs/src/github/python-crc32c/google_crc32c
pushd google_crc32c
@rem reset hard to cleanup any changes done by a previous build.
git reset --hard
@@ -58,11 +57,11 @@ FOR %%P IN (3.8, 3.9, 3.10, 3.11, 3.12) DO (
mkdir build
cd build

echo "Running cmake with Generator: %CMAKE_GENERATOR%, Platform: x64, Install Prefix: %CRC32C_INSTALL_PREFIX%"
echo "Running cmake at %TARGET%\Scripts\cmake with Generator: %CMAKE_GENERATOR%, Platform: x64, Install Prefix: %CRC32C_INSTALL_PREFIX%"

%cmake% -G %CMAKE_GENERATOR% -A x64 -DCRC32C_BUILD_BENCHMARKS=no -DCRC32C_BUILD_TESTS=no -DBUILD_SHARED_LIBS=yes -DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=yes -DCRC32C_USE_GLOG=0 -DCMAKE_INSTALL_PREFIX:PATH=%CRC32C_INSTALL_PREFIX% ..
%TARGET%\Scripts\cmake -G %CMAKE_GENERATOR% -A x64 -DCRC32C_BUILD_BENCHMARKS=no -DCRC32C_BUILD_TESTS=no -DBUILD_SHARED_LIBS=yes -DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=yes -DCRC32C_USE_GLOG=0 -DCMAKE_INSTALL_PREFIX:PATH=%CRC32C_INSTALL_PREFIX% ..

%cmake% --build . --config "%CONFIGURATION%" --target install
%TARGET%\Scripts\cmake --build . --config "%CONFIGURATION%" --target install

dir %CRC32C_INSTALL_PREFIX% /b /s
popd

0 comments on commit c0f9308

Please sign in to comment.