Skip to content

Commit

Permalink
Add linux-i386 build target.
Browse files Browse the repository at this point in the history
Signed-off-by: Rule Timothy (VM/EMT3) <[email protected]>
  • Loading branch information
timrulebosch committed Aug 20, 2024
1 parent a48e9f1 commit a42416e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
package_arch:
- linux-amd64
- linux-x86
- linux-i386
- windows-x86
- windows-x64
container:
Expand Down Expand Up @@ -97,6 +98,7 @@ jobs:
package_arch:
- linux-amd64
- linux-x86
- linux-i386
- windows-x86
- windows-x64
steps:
Expand Down
17 changes: 17 additions & 0 deletions extra/cmake/linux-i386.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Target: Linux i386

set(CMAKE_SYSTEM_NAME Linux)
set(CDEF_PLATFORM_OS linux) # Available via dse/clib/platform.h.
set(CDEF_PLATFORM_ARCH i386) # Available via dse/clib/platform.h.

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m32")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32")


# Enable CCache if available.
# Trigger secondary storage by setting environment variables:
# CCACHE_SECONDARY_STORAGE=redis://YOUR_SERVER
find_program(CCACHE_PROGRAM ccache)
if(CCACHE_PROGRAM)
set(CMAKE_C_COMPILER_LAUNCHER "${CCACHE_PROGRAM}")
endif()

0 comments on commit a42416e

Please sign in to comment.