The overall purpose of this PR is to prepare for cross-compilation by 1) creating stricter compile (and hence lower the risk of compile failure with other compilers than clang) and 2) adding experimental support for cross compilation from macOS (Aarch64 or x86) til Linux x86.
This PR further cleans the repository for unused code. Note that the mentioned docker images needs to be commented ut in the BUILID files to work. These are deactivated as Docker causes issues on the Windows CI.
Stricter compile flags & code clean up
This PR introduces stricter compile flags for Bazel. Along with this, it cleans a the code a number of places to accommodate the stricter flags.
Updated Markdown configuration
The markdown configuration is updated to follow that of the organisation.
Experimental cross-compilation of Docker images
This repository now offers support for building Docker images using bazel:
bazelisk run //qir/qat:qat-image --config generic_clang --config release --platforms=@//:linux-x86
This (cross-)compiles qat and creates a Docker image containing the executable using x86_64 architecture irrespective of whether the host platform is aarch64. Running this command on macOS M2, the corresponding Docker image is:
The overall purpose of this PR is to prepare for cross-compilation by 1) creating stricter compile (and hence lower the risk of compile failure with other compilers than clang) and 2) adding experimental support for cross compilation from macOS (
Aarch64
orx86
) til Linuxx86
.This PR further cleans the repository for unused code. Note that the mentioned docker images needs to be commented ut in the
BUILID
files to work. These are deactivated as Docker causes issues on the Windows CI.Stricter compile flags & code clean up
This PR introduces stricter compile flags for Bazel. Along with this, it cleans a the code a number of places to accommodate the stricter flags.
Updated Markdown configuration
The markdown configuration is updated to follow that of the organisation.
Experimental cross-compilation of Docker images
This repository now offers support for building Docker images using
bazel
:This (cross-)compiles
qat
and creates a Docker image containing the executable usingx86_64
architecture irrespective of whether the host platform isaarch64
. Running this command on macOS M2, the corresponding Docker image is:Experimental support Linux cross compiling for OS X
To cross compile on Apple silicon, start by installing GCC for Linux:
To create Linux binaries specify the platform
--platforms=@//:linux-x86
. On macOS M2, this the process looks like:resulting in following executable:
This PR also adds target platforms
apple-x86
andapple-silicon
. Compiling forx86
onaarch64
:which produces an
x86
binary for Intel based Apple machines:And vice versa [host:
x86
],yields