Inorder to build Lind natively on Linux the major hurdles we face are the dependency on make 3.82, texinfo-4.13 which are built from source inside the current docker container setup. In this PR we created a dev container based of of lind-full image, so new code can be mounted into the container using Vscode. Once the code in mounted, we can build lind inside the dev container as it has all the required dependencies at the right versions.
Once the build is done, we can switch out of the dev container, and run a few ENV variables setup and Lind runs natively
steps to run LIND:
open folder inside dev container
use make to build (either all or just rustposix and nacl based on your local changes)
switch out of dev container as all changes will persist to the host automatically
run export LIND_NATIVE_HOME=your project path
run . ./lind_native.sh - to setup ENV variables
run make test
Fixes # (issue)
Type of change
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
How Has This Been Tested?
Test A - lind_project/tests/test_cases/test_a.c
Test B - lind_project/tests/test_cases/test_b.c
Checklist:
[ ] My code follows the style guidelines of this project
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] Any dependent changes have been added to a pull request and/or merged in other modules (native-client, lind-glibc, safeposix-rust)
Description
Inorder to build Lind natively on Linux the major hurdles we face are the dependency on make 3.82, texinfo-4.13 which are built from source inside the current docker container setup. In this PR we created a dev container based of of lind-full image, so new code can be mounted into the container using Vscode. Once the code in mounted, we can build lind inside the dev container as it has all the required dependencies at the right versions.
Once the build is done, we can switch out of the dev container, and run a few ENV variables setup and Lind runs natively
steps to run LIND:
export LIND_NATIVE_HOME=your project path
. ./lind_native.sh
- to setup ENV variablesmake test
Fixes # (issue)
Type of change
How Has This Been Tested?
lind_project/tests/test_cases/test_a.c
lind_project/tests/test_cases/test_b.c
Checklist: