Skip to content

Conversation

@rphillips
Copy link
Member

@rphillips rphillips commented Aug 20, 2018

This is still a WIP.

We can emulate the build architecture environments with Linux, docker, and qemu-static-$arch binaries.

Host machine:
 docker run --rm --privileged multiarch/qemu-user-static:register --reset
 install qemu-static-binaries

Then we can run multiarch Ubuntu docker images via:

docker run -ti multiarch/ubuntu-core:armhf-bionic bash

The general idea is to build luvi within each emulated docker container.

I am not sure when I will get back to PR, but if someone is inspired feel free to PR a full solution

Resources:

Cross-Building-and-Running-Multi-Arch-Docker-Images

else()
set(OPENSSL_CONFIGURE_COMMAND ./config ${OPENSSL_CONFIG_OPTIONS})
set(OPENSSL_BUILD_COMMAND make)
set(OPENSSL_BUILD_COMMAND make -j6)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why hard-code this to 6?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found out while working on this, the OPENSSL_BUILD_COMMAND doesn't pass down the parallel build job. We should remove the -j6 in favor of passing down the make options from the parent cmake.

@rphillips rphillips force-pushed the feat/multiplatform_build branch from 1a87057 to 97c4a1b Compare August 24, 2018 21:09
@rphillips rphillips changed the title WIP: initial pass at multiplatform builds initial pass at multiplatform builds Jan 15, 2019
@rphillips
Copy link
Member Author

we should get this in... works on Linux to create cross builds (not windows).

@rphillips rphillips mentioned this pull request Jan 15, 2019
@creationix creationix merged commit 3e62a5a into luvit:master Feb 28, 2019
@creationix
Copy link
Member

This looks very useful, thanks.

@squeek502 squeek502 mentioned this pull request Mar 26, 2019
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants