From d3d60da45accd662798e04916d237d7d8f8a86fb Mon Sep 17 00:00:00 2001 From: tqcq <99722391+tqcq@users.noreply.github.com> Date: Mon, 17 Jun 2024 15:28:32 +0800 Subject: [PATCH] fix i386 fiber asm --- CMakeLists.txt | 2 +- toolchains/host.gcc-m32.toolchain.cmake | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 50901ee..8c79940 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,7 +21,7 @@ option(TILE_WITH_OPENSSL "Build with openssl" OFF) option(TILE_BUILD_SHARED "Build shared library" ON) option(TILE_BUILD_STATIC "Build static library" ON) -if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_PROJECT_DIR) +if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR) set(TILE_BUILD_TESTS ON) set(TILE_BUILD_BENCHMARKS ON) endif() diff --git a/toolchains/host.gcc-m32.toolchain.cmake b/toolchains/host.gcc-m32.toolchain.cmake index 5b2abd1..d646167 100644 --- a/toolchains/host.gcc-m32.toolchain.cmake +++ b/toolchains/host.gcc-m32.toolchain.cmake @@ -10,7 +10,9 @@ set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) set(CMAKE_C_FLAGS "-m32") set(CMAKE_CXX_FLAGS "-m32") +set(CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} -m32") # cache flags set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}" CACHE STRING "c flags") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}" CACHE STRING "c++ flags") +set(CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS}" CACHE STRING "asm flags")