Print bitness

This commit is contained in:
Anonymous Maarten 2024-01-10 21:30:15 +01:00
parent 1cfa54d908
commit e70b545422
2 changed files with 7 additions and 1 deletions

View File

@ -47,7 +47,7 @@ jobs:
- name: Build - name: Build
run: | run: |
cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -GNinja cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -GNinja -Werror=dev
cmake --build build cmake --build build
build: build:

View File

@ -2,6 +2,12 @@ cmake_minimum_required(VERSION 3.13 FATAL_ERROR)
project(isle CXX) project(isle CXX)
math(EXPR bits "8 * ${CMAKE_SIZEOF_VOID_P}")
message(STATUS "Building ${bits}-bit Lego Island")
if (NOT bits EQUAL 32)
message(WARNING "Only 32-bit executables are supported")
endif()
set(MSVC_FOR_DECOMP FALSE) set(MSVC_FOR_DECOMP FALSE)
if (MSVC) if (MSVC)
# Visual C++ 4.2 -> cl version 10.2.0 # Visual C++ 4.2 -> cl version 10.2.0