Skip to content

Add LLVM libc based toolchain build#270

Merged
statham-arm merged 1 commit intoarm:arm-softwarefrom
voltur01:add_llvmlibc_toolchain
Apr 14, 2025
Merged

Add LLVM libc based toolchain build#270
statham-arm merged 1 commit intoarm:arm-softwarefrom
voltur01:add_llvmlibc_toolchain

Conversation

@voltur01
Copy link
Contributor

Add build script for ATfE variant with LLVM libc as the defaulty C library to simplify testing project compatibility with LLVM libc.

Update CMake file to give the package an informative name.

Add build script for ATfE variant with LLVM libc as the defaulty C library to simplify testing project compatibility with LLVM libc.

Update CMake file to give the package an informative name.
export CXX=clang++

SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
REPO_ROOT=$( git -C ${SCRIPT_DIR} rev-parse --show-toplevel )
Copy link
Contributor

Choose a reason for hiding this comment

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

Shell quoting nits: ${SCRIPT_DIR} in this line should be double-quoted. So should ${BUILD_DIR} in the mkdir and cd commands below.

(But it's OK not to quote these $(...) constructs on the RHS of an assignment, or the ${REPO_ROOT} in the assignment to BUILD_DIR, because in that context, the shell decides what's the RHS of a variable assignment before expanding those things into stuff that might contain spaces.)

Copy link
Contributor

@statham-arm statham-arm left a comment

Choose a reason for hiding this comment

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

Since @voltur01 is on holiday this week and I'm on holiday next week, in the interests of moving things along, I'll change my mind and approve this PR, then submit my own followup which fixes the quoting, in this file and several others with the same issue.

@statham-arm statham-arm merged commit 98d0f2a into arm:arm-software Apr 14, 2025
statham-arm added a commit that referenced this pull request Apr 15, 2025
While reviewing #270 I noticed some missing quotes in the new script,
and David spotted that that's because they're the same in all the other
similar scripts. Fix the whole lot.

Building in a spacey directory might fail anyway (quite likely
_something_ in the overall build edifice isn't prepared to cope). But we
can at least fix the issues we find.
@voltur01
Copy link
Contributor Author

Thank you @statham-arm! Note that we have the same code in other build scripts, so may need to review all of them.

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.

2 participants