build: refactor os-specific scripts into different files #175
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This patch refactors all the OS-specific configuration scripts
into separate files:
scripts/linux.js
for Linuxscripts/darwin.js
for macOSscripts/freebsd.js
for FreeBSDAnd put lldb-specific code into
scripts/lldb.js
.The
scripts/configure.js
now runs amain()
functionthat calls other functions so the configuration code
is now more readable.
Also adds comments in the configuration scripts
and more console outputs during the installation
to help users find issues about their installation.
Tested with the following combinations (with
npm install
):brew install --with-lldb --with-toolchain llvm
)apt-get install lldb-4.0 liblldb-4.0-dev
)pkg install llvm40
to install the headers)pkg install llvm50
and relink/usr/bin/lldb
to/usr/local/bin/lldb50
)