From f0c5f3306fadc7dea7a13defd8b9cf20a6982493 Mon Sep 17 00:00:00 2001 From: Michal Klocek Date: Wed, 6 Dec 2017 16:08:12 +0100 Subject: Add 32bit host compiler test The 32bit compiler is required for creating v8 snapshots. Task-number: QTBUG-65004 Task-number: QTBUG-64869 Change-Id: I0a7a351208768f0b12900fac14d3abd5c8d99fa2 Reviewed-by: Allan Sandfeld Jensen --- config.tests/hostcompiler/hostcompiler.pro | 9 +++++++++ config.tests/hostcompiler/main.cpp | 6 ++++++ 2 files changed, 15 insertions(+) create mode 100644 config.tests/hostcompiler/hostcompiler.pro create mode 100644 config.tests/hostcompiler/main.cpp (limited to 'config.tests') diff --git a/config.tests/hostcompiler/hostcompiler.pro b/config.tests/hostcompiler/hostcompiler.pro new file mode 100644 index 000000000..5a80246ab --- /dev/null +++ b/config.tests/hostcompiler/hostcompiler.pro @@ -0,0 +1,9 @@ +option(host_build) + +gcc:equals(QT_ARCH, "x86_64"):contains(QT_TARGET_ARCH, "arm"):!contains(QT_TARGET_ARCH, "arm64") { + QMAKE_CXXFLAGS += -m32 + QMAKE_LFLAGS += -m32 +} + +SOURCES = main.cpp + diff --git a/config.tests/hostcompiler/main.cpp b/config.tests/hostcompiler/main.cpp new file mode 100644 index 000000000..96444ae8b --- /dev/null +++ b/config.tests/hostcompiler/main.cpp @@ -0,0 +1,6 @@ +#include +int main() +{ + printf("This works\n"); + return 0; +} -- cgit v1.2.3