try to force 32 bit with BUILD_32BIT flag. force VERBOSE=1 cmake build too

This commit is contained in:
Grant Limberg 2020-06-10 16:19:39 -07:00
parent 42104cfc4c
commit 47ec246520
No known key found for this signature in database
GPG key ID: 2BA62CCABBB4095A
2 changed files with 4 additions and 1 deletions

View file

@ -110,6 +110,9 @@ else(WIN32)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32" CACHE STRING "c++ flags") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32" CACHE STRING "c++ flags")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m32" CACHE STRING "c flags") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m32" CACHE STRING "c flags")
set(GOARCH "GOARCH=386" CACHE STRING "go architecture") set(GOARCH "GOARCH=386" CACHE STRING "go architecture")
add_compile_options(
-m32
)
endif(BUILD_32BIT) endif(BUILD_32BIT)
endif(APPLE) endif(APPLE)
endif(WIN32) endif(WIN32)

View file

@ -4,7 +4,7 @@ TIMESTAMP=$(shell date +"%Y%m%d%H%M")
.PHONY: all .PHONY: all
all: setup all: setup
cd ${BUILDDIR} && $(MAKE) -j$(shell getconf _NPROCESSORS_ONLN) cd ${BUILDDIR} && $(MAKE) -j$(shell getconf _NPROCESSORS_ONLN) VERBOSE=1
setup: setup:
mkdir -p ${BUILDDIR} && cd ${BUILDDIR} && cmake .. -DCMAKE_BUILD_TYPE=Release ${CMAKE_ARGS} mkdir -p ${BUILDDIR} && cd ${BUILDDIR} && cmake .. -DCMAKE_BUILD_TYPE=Release ${CMAKE_ARGS}