Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the plugin was not effect #2

Open
Dfault0 opened this issue Oct 11, 2023 · 6 comments
Open

the plugin was not effect #2

Dfault0 opened this issue Oct 11, 2023 · 6 comments

Comments

@Dfault0
Copy link

Dfault0 commented Oct 11, 2023

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

@Memexurer
Copy link

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
Copy link

omg of course you did

@Memexurer
Copy link

image

@Dfault0
Copy link
Author

Dfault0 commented Oct 24, 2023

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

@Memexurer
Copy link

of course!

@Dfault0
Copy link
Author

Dfault0 commented Oct 26, 2023

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

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

No branches or pull requests

2 participants