Skip to content

Commit

Permalink
Add 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 21, 2024
1 parent 2e2f1e0 commit c2ad640
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
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 @@ -119,6 +120,7 @@ jobs:
package_arch:
- linux-amd64
- linux-x86
- linux-i386
- windows-x86
- windows-x64
steps:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export DSE_CLIB_VERSION ?= 1.0.17

###############
## DSE Model C Library
export DSE_MODELC_VERSION ?= 2.0.27
export DSE_MODELC_VERSION ?= 2.0.29


###############
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 c2ad640

Please sign in to comment.