Skip to content

Initial pr#1

Open
nickdesaulniers wants to merge 11 commits into
mainfrom
initial_pr
Open

Initial pr#1
nickdesaulniers wants to merge 11 commits into
mainfrom
initial_pr

Conversation

@nickdesaulniers
Copy link
Copy Markdown
Member

@nickdesaulniers nickdesaulniers commented Sep 22, 2021

I got stuck getting libc++ to build; also, libc++abi seems to have regressed. Generally poor quality code that's full of trash and not cleaned up. Thought it might be worth posting if anyone is interested in playing with it.

EDIT: fixed the libc++abi build.

Comment thread musl.sh
@nickdesaulniers
Copy link
Copy Markdown
Member Author

@compnerd mentioned that https://github.com/compnerd/toolchain-infrastructure might also be of interest.

Comment thread musl.sh
--syslibdir=/usr/local/lib \
--disable-static

make -j$(nproc) AR=llvm-ar RANLIB=llvm-ranlib
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
make -j$(nproc) AR=llvm-ar RANLIB=llvm-ranlib
make -j$(nproc) AR=${AR:-ar} RANLIB=${RANLIB:-ranlib}

The user can specify AR=llvm-ar RANLIB=llvm-ranlib to select it.

also, I had libc++abi built, but upon wiping my build artifacts and
rerunning fresh, that doesn't build anymore...
Comment thread bootstrap.sh
Comment thread bootstrap.sh Outdated
Comment thread bootstrap.sh
cmake \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_CXX_COMPILER=$CXX \
-D CMAKE_CXX_COMPILER_TARGET=x86_64-unknown-linux-musl \
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is CMAKE_CXX_COMPILER_TARGET needed? Does LLVM_DEFAULT_TARGET_TRIPLE help?

Comment thread bootstrap.sh Outdated
Comment thread bootstrap.sh
@tpimh
Copy link
Copy Markdown

tpimh commented Sep 24, 2021

I'm very interested in this, will take a brief look next week.

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.

4 participants