diff --git a/.github/workflows/mingw_build.yml b/.github/workflows/mingw_build.yml index 7458fdedf..8524dc404 100644 --- a/.github/workflows/mingw_build.yml +++ b/.github/workflows/mingw_build.yml @@ -78,7 +78,7 @@ jobs: # Note the current convention is to use the -S and -B options here to specify source # and build directories, but this is only available with CMake 3.13 and higher. # The CMake binaries on the Github Actions machines are (as of this writing) 3.12 - run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_TOOLCHAIN_FILE=$GITHUB_WORKSPACE/toolchain_mingw.cmake -DMINGW_TRIPLE=$MINGW_TRIPLE -G Ninja -DENABLE_LTO=False -DENABLE_ASSERTIONS=True -DENABLE_X86_HOST_DEBUG=True -DBUILD_TESTS=False -DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/build/install + run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_TOOLCHAIN_FILE=$GITHUB_WORKSPACE/Data/CMake/toolchain_mingw.cmake -DMINGW_TRIPLE=$MINGW_TRIPLE -G Ninja -DENABLE_LTO=False -DENABLE_ASSERTIONS=True -DENABLE_X86_HOST_DEBUG=True -DBUILD_TESTS=False -DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/build/install - name: Build working-directory: ${{runner.workspace}}/build diff --git a/CMakeLists.txt b/CMakeLists.txt index 073c4927e..f5d33e7a8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,8 +35,8 @@ set (FEXCORE_PROFILER_BACKEND "gpuvis" CACHE STRING "Set which backend to use fo option(ENABLE_GLIBC_ALLOCATOR_HOOK_FAULT "Enables glibc memory allocation hooking with fault for CI testing") option(USE_PDB_DEBUGINFO "Builds debug info in PDB format" FALSE) -set (X86_32_TOOLCHAIN_FILE "${CMAKE_CURRENT_SOURCE_DIR}/toolchain_x86_32.cmake" CACHE FILEPATH "Toolchain file for the (cross-)compiler targeting i686") -set (X86_64_TOOLCHAIN_FILE "${CMAKE_CURRENT_SOURCE_DIR}/toolchain_x86_64.cmake" CACHE FILEPATH "Toolchain file for the (cross-)compiler targeting x86_64") +set (X86_32_TOOLCHAIN_FILE "${CMAKE_CURRENT_SOURCE_DIR}/Data/CMake/toolchain_x86_32.cmake" CACHE FILEPATH "Toolchain file for the (cross-)compiler targeting i686") +set (X86_64_TOOLCHAIN_FILE "${CMAKE_CURRENT_SOURCE_DIR}/Data/CMake/toolchain_x86_64.cmake" CACHE FILEPATH "Toolchain file for the (cross-)compiler targeting x86_64") set (X86_DEV_ROOTFS "/" CACHE FILEPATH "Path to the sysroot used for cross-compiling for i686 and x86_64") set (DATA_DIRECTORY "" CACHE PATH "Global data directory (override)") if (NOT DATA_DIRECTORY) diff --git a/CMakeToolchains/AArch64.cmake b/Data/CMake/toolchain_aarch64.cmake similarity index 94% rename from CMakeToolchains/AArch64.cmake rename to Data/CMake/toolchain_aarch64.cmake index ee58f72eb..c135bd016 100644 --- a/CMakeToolchains/AArch64.cmake +++ b/Data/CMake/toolchain_aarch64.cmake @@ -1,6 +1,6 @@ # This is a reference AArch64 cross compile script # Pass in to cmake when building: -# eg: cmake -DCMAKE_TOOLCHAIN_FILE=../CMakeToolchains/AArch64.cmake .. +# eg: cmake --toolchain ../Data/CMake/toolchain_aarch64.cmake .. if (NOT DEFINED ENV{SYSROOT}) message(FATAL_ERROR "Need to have SYSROOT environment variable set") endif() diff --git a/toolchain_mingw.cmake b/Data/CMake/toolchain_mingw.cmake similarity index 100% rename from toolchain_mingw.cmake rename to Data/CMake/toolchain_mingw.cmake diff --git a/toolchain_x86_32.cmake b/Data/CMake/toolchain_x86_32.cmake similarity index 100% rename from toolchain_x86_32.cmake rename to Data/CMake/toolchain_x86_32.cmake diff --git a/toolchain_x86_64.cmake b/Data/CMake/toolchain_x86_64.cmake similarity index 100% rename from toolchain_x86_64.cmake rename to Data/CMake/toolchain_x86_64.cmake