Closed yu-re-ka closed 9 months ago
A few days ago, I integrated the following CMAKE option into the dev branch (https://github.com/rtbrick/bngblaster/commit/2abd7b362a3e0b347de3f999210137b46b21a83f) to enable the building of the BNG Blaster on my older Pi3. However, I still need to follow up with updating the documentation regarding this integration.
cmake -DBNGBLASTER_CPU_NATIVE=on .
BNGBLASTER_CPU_NATIVE
uses -march=native
which is not unsuitable for distro packaging because the resulting binary only works on CPUs that have all the instruction set extensions as the builder.
We need a mode that passes neither -m64
nor -march=native
, and IMO that should be the default.
Please verify.
Can confirm this works on aarch64-linux 👍🏻
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Version 0.8.28
JSON configuration: N/A
Steps to reproduce the behavior:
Expected behavior
bngblaster builds
Screenshots
Additional context
The compiler option
-m64
is only valid when building for x86, but is specified in https://github.com/rtbrick/bngblaster/blob/6934bb51b7257b067b5ba49dd1a811a73f0c39d2/code/bngblaster/CMakeLists.txt#L68 and https://github.com/rtbrick/bngblaster/blob/6934bb51b7257b067b5ba49dd1a811a73f0c39d2/code/lspgen/CMakeLists.txt#L22 regardless of architecture