Commit b89c05c8 authored by Mo Zhou's avatar Mo Zhou 🌸
Browse files

Downgrade GCC version to 7 for armhf in order to circumvent FTBFS.

parent ad18aacb
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@ Build-Depends:
 curl,
 unicode-data,
 libmbedtls-dev,
 gcc-7 [armhf], g++-7 [armhf],
Build-Depends-Indep:
 latexmk,
 texlive,
+7 −2
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@ export DEB_CXXFLAGS_MAINT_APPEND=-DLLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=0

# Disable unaligned access on armhf
ifneq (,$(filter $(DEB_HOST_ARCH),armhf))
	export DEB_CFLAGS_MAINT_APPEND += -mno-unaligned-access -marm
	export DEB_CFLAGS_MAINT_APPEND += -mno-unaligned-access
endif

# Ensure pcre_h.jl and errno_h.jl are sorted reproducibly
@@ -73,11 +73,16 @@ else
COMMON_FLAGS += USE_SYSTEM_OPENLIBM=0 USE_SYSTEM_LIBM=1
endif

# Disable libunwind on s390x
# [s390x] Disable libunwind
ifneq (,$(filter $(DEB_HOST_ARCH),s390x))
COMMON_FLAGS += DISABLE_LIBUNWIND=1
endif

# [armhf] Fallback to GCC-7
ifneq (,$(filter $(DEB_HOST_ARCH),armhf))
COMMON_FLAGS += CC=gcc-7 CXX=g++-7
endif

# Set number of parallel workers for tests
ifneq (,$(filter parallel=1,$(DEB_BUILD_OPTIONS)))
TESTS_ENV += JULIA_CPU_THREADS=2