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

Why can't I see custom rules in the compiled product? #39

Open
cyw3 opened this issue Nov 13, 2023 · 0 comments
Open

Why can't I see custom rules in the compiled product? #39

cyw3 opened this issue Nov 13, 2023 · 0 comments

Comments

@cyw3
Copy link

cyw3 commented Nov 13, 2023

Problem

I can't see custom rules aliceO2-member-name in the compiled product.

# ./tool/O2codecheck -checks="-*,al*" --list-checks
Enabled checks:
    altera-id-dependent-backward-branch
    altera-kernel-name-restriction
    altera-single-work-item-barrier
    altera-struct-pack-align
    altera-unroll-loops

Reproduction

  1. set env
export LLVM_HOME=/path/to/clang+llvm-13.0.1-x86_64-linux-gnu-ubuntu-18.04
export CMAKE_HOME=/path/to/cmake-3.28.0-rc3
export GCC_HOME=/path/to/gcc-9.1.0/
export CC=$GCC_HOME/bin/gcc
export CXX=$GCC_HOME/bin/g++
export LD_LIBRARY_PATH=$LLVM_HOME/lib:$GCC_HOME/lib64:$LD_LIBRARY_PATH
export PATH=$GCC_HOME/bin:$CMAKE_HOME/bin/:$PATH
  1. build O2CodeChecker v13.0
mkdir build
cd build/
cmake -DLLVM_DIR=$LLVM_HOME/lib/cmake/llvm -DClang_DIR=$LLVM_HOME/lib/cmake/clang/ ../
make -j8
  1. run
cd build
./tool/O2codecheck -checks="-*,al*" --list-checks
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

1 participant