Hi Juanito
This is the first time I compile
LLVM and I'm following your instructions
here.
I have a few questions, but first I spot a typo here:
The comma is gone, so nothing is passed to the linker
find . -name link.txt -type f -exec sed -i 's/-Wl,-O3/-Wl -Os/g' {} \;
Anyway~
I can't find all the files listed above so I decide to "grep" my way through.
There are only 3 files containing "-O3" or "-g" flags.
sed -i.orig -e 's:-Wl,-O3:-Wl,-O1:g' -e 's: -O3 : :g' -e 's: -g : :g' build.ninja CMakeCache.txt compile_commands.json
[libexecdir needs setting]
[-DLLVM_ENABLE_LTO=Full]
I didn't touch libexecdir and I removed LTO so jobs can be distributed.
Distcc sure helps a lot with the compile time.
time ninja -j8
real 5h 38m 17s
user 16h 17m 23s
sys 44m 3.42s
BTW, you can specify DESTDIR with ninja
DESTDIR=/tmp/packing-llwm ninja install
I'm having troubles when packing things up.
What should I do with this ?
[links against ncursesw without ncursesw-dev]
What about clang ?
It looks like llvm should be packed into multiple packages and I'm not sure what are they.
P.S. I'm pretty sure
-Wl,-O[1-9] is identical to
-Wl,-O1 so you can just ignore that.