ARM-software / LLVM-embedded-toolchain-for-Arm

A project dedicated to building LLVM toolchain for 32-bit Arm embedded targets.
Apache License 2.0
377 stars 85 forks source link

[CMakeLists] git command does not work on linux #404

Closed sivan-shani closed 3 months ago

sivan-shani commented 4 months ago

CMakeLists.txt instructs how to build by checking out and patch the repos manually. In the instructions, the command: git -C repos/llvm-project am -k ../../patches/llvm-project/*.patch Does not work on Linux (probably because the the shell expands the '*' and not git)

voltur01 commented 4 months ago

Hi Sivan,

You are right, looks like the pattern is expanded and used in different directories, thus the relative path is wrong in one of them. Providing the full path woks for me, e.g.

git -C repos/llvm-project am -k `pwd`/../patches/llvm-project/*.patch

I will update the doc, thank you for reporting this!