Skip to content

Commit

Permalink
Drop mingw i686
Browse files Browse the repository at this point in the history
  • Loading branch information
jschueller authored and wjakob committed Jul 13, 2020
1 parent 84c0b40 commit 100e489
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 27 deletions.
29 changes: 7 additions & 22 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,28 @@ sudo: false
matrix:
include:
- os: linux
compiler: gcc-4.8
compiler: g++
script:
- CXXFLAGS="-mno-rtm" cmake -DCMAKE_CXX_COMPILER=g++-4.8 .
- make -j2
- cmake -DCMAKE_INSTALL_PREFIX=~/.local .
- make install -j2
- ctest -j2 --output-on-failure --timeout 500
addons:
apt:
packages:
- g++-4.8
- g++-4.8-multilib
- g++-multilib
- g++
- cmake
- swig
- python-dev
- os: osx
compiler: clang
script:
- cmake .
- make -j2
- cmake -DCMAKE_INSTALL_PREFIX=~/.local .
- make install -j2
- ctest -j2 --output-on-failure --timeout 500 -E parallel_for
- os: linux
compiler: x86_64-w64-mingw32-g++
script:
- cmake -DCMAKE_CXX_COMPILER=x86_64-w64-mingw32-g++ -DCMAKE_TOOLCHAIN_FILE=build/mingw_cross_toolchain.cmake -DGNU_HOST=x86_64-w64-mingw32 .
- cmake -DCMAKE_TOOLCHAIN_FILE=build/mingw_cross_toolchain.cmake .
- make -j2
addons:
apt:
Expand All @@ -37,16 +35,3 @@ matrix:
- binutils-mingw-w64-x86-64
- cmake
- make
- os: linux
compiler: i686-w64-mingw32-g++
script:
- cmake -DCMAKE_CXX_COMPILER=i686-w64-mingw32-g++ -DCMAKE_TOOLCHAIN_FILE=build/mingw_cross_toolchain.cmake -DGNU_HOST=i686-w64-mingw32 .
- make -j2
addons:
apt:
packages:
- g++-mingw-w64-i686
- gcc-mingw-w64-i686
- binutils-mingw-w64-i686
- cmake
- make
9 changes: 4 additions & 5 deletions build/mingw_cross_toolchain.cmake
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# CMake toolchain file, cf. README.mingw_cross
SET(CMAKE_SYSTEM_NAME Windows)
include(CMakeForceCompiler)
IF("${GNU_HOST}" STREQUAL "")
SET(GNU_HOST i586-mingw32msvc)
SET(GNU_HOST x86_64-w64-mingw32)
ENDIF()
# Prefix detection only works with compiler id "GNU"
CMAKE_FORCE_C_COMPILER(${GNU_HOST}-gcc GNU)
SET(CMAKE_RC_COMPILER ${GNU_HOST}-windres)
SET(CMAKE_C_COMPILER ${GNU_HOST}-gcc)
SET(CMAKE_CXX_COMPILER ${GNU_HOST}-g++)
SET(CMAKE_RC_COMPILER ${GNU_HOST}-windres)

0 comments on commit 100e489

Please sign in to comment.