Skip to content

Commit

Permalink
python-pywin32: Avoid compilation errors via compiler flags
Browse files Browse the repository at this point in the history
  • Loading branch information
joankaradimov committed Jul 16, 2019
1 parent b7088c7 commit b6274eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mingw-w64-python-pywin32/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ build() {
msg2 "Synchronizing ${_python} build directory"
rsync --recursive --times "${srcdir}/${_realname}-${pkgver}"/* "${srcdir}/build-${_python}-${CARCH}-${_realname}-${pkgver}"
cd "${srcdir}/build-${_python}-${CARCH}-${_realname}-${pkgver}"
CFLAGS="-Wno-narrowing -fno-operator-names -fpermissive" \
LIB="${MINGW_PREFIX}/lib:${MINGW_PREFIX}/${CARCH}-w64-mingw32/lib" \
INCLUDE="${MINGW_PREFIX}/include:${MINGW_PREFIX}/${CARCH}-w64-mingw32/include" \
${MINGW_PREFIX}/bin/${_python} setup.py build --compiler=mingw32
Expand Down

0 comments on commit b6274eb

Please sign in to comment.