ollvm-16 icon indicating copy to clipboard operation
ollvm-16 copied to clipboard

the plugin was not effect

Open Dfault0 opened this issue 2 years ago • 6 comments

i build this with llvm16.0.0 on macos。cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="clang" ../../llvm-project/llvm but after i was build successful,i cannot use clang with -mllvm -fla .i donot konw how to solve it. can anyone help? thanks very much

screenshot-20231011-143408

Dfault0 avatar Oct 11 '23 06:10 Dfault0

are you sure you didn't forget -DLLVM_OBFUSCATION_LINK_INTO_TOOLS=ON when configuring with cmake? had the same issue, and passing that arg fixed it

Memexurer avatar Oct 21 '23 17:10 Memexurer

omg of course you did

Memexurer avatar Oct 21 '23 17:10 Memexurer

image

Memexurer avatar Oct 21 '23 17:10 Memexurer

but i am using mac os,should i add -DLLVM_OBFUSCATION_LINK_INTO_TOOLS=ON when i was build? @Memexurer

Dfault0 avatar Oct 24 '23 00:10 Dfault0

of course!

Memexurer avatar Oct 24 '23 18:10 Memexurer

i was build clang by cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="clang" -DLLVM_OBFUSCATION_LINK_INTO_TOOLS=ON ../../llvm-project/llvm. when i was use $clangPath/clang -isysroot xcrun --show-sdk-path-arch arm64 -mllvm -fla -emit-llvm -S ../test.c -o test_fla.ll ,the output was same as $clangPath/clang -isysroot xcrun --show-sdk-path-arch arm64 -emit-llvm -S ../test.c -o test.ll . the plugin was also not work. can you help me to solve it?thanks @Memexurer

Dfault0 avatar Oct 26 '23 01:10 Dfault0