Skip to content

Commit

Permalink
Set ARCH triplet before using it in MinGW cmake toolchain file
Browse files Browse the repository at this point in the history
  • Loading branch information
Doy-lee committed Jan 17, 2025
1 parent be6ab6e commit 9bce032
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/64-bit-toolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

set (ARCH_TRIPLET x86_64-w64-mingw32)
if (CMAKE_HOST_WIN32)
# Building w/ MSYS MinGW as recommended by the readme only ships MinGW with
# the posix threading API as confirmed by 'x86_64-w64-mingw32-gcc.exe -v'
Expand All @@ -40,7 +41,6 @@ else()
set (CMAKE_CXX_COMPILER ${ARCH_TRIPLET}-g++-posix)
endif()

set (ARCH_TRIPLET x86_64-w64-mingw32)
set (CMAKE_SYSTEM_PROCESSOR x86_64)
set (CMAKE_AR ar CACHE FILEPATH "" FORCE)
set (CMAKE_NM nm CACHE FILEPATH "" FORCE)
Expand Down

0 comments on commit 9bce032

Please sign in to comment.