LLNL / pLiner

pLiner is a framework that helps programmers identify locations in the source of numerical code that are highly affected by compiler optimizations.
Apache License 2.0
17 stars 3 forks source link

option 4 about CMakeList #14

Closed liu-xunnn closed 7 months ago

liu-xunnn commented 11 months ago

echo "add_subdirectory(pLiner/clang-tool)" >> CMakeLists.txt cp pLiner/clang-tool/CMakeLists.txt-insource CMakeLists

I can't understand this two lines of code. I don't use the second line of code ,and pLiner is built suscessfully. but some lib error about clang occurs.it leads to fail of tests excep region-trans.

doloresmiao commented 10 months ago

The original purpose of these two lines is to add pLiner to the source tree of Clang/LLVM, so that when you (incrementally or not) build Clang/LLVM again, it will also build pLiner.

Though it is indeed strange that CMakeLists.txt gets appended, and then followed by an overwrite. I will take a look into it and get back to you soon. Thanks!

doloresmiao commented 10 months ago

Now I know what the problem iss: use cp pLiner/clang-tool/CMakeLists.txt-insource pLiner/CMakeLists.txt instead.

Other errors can be solved by apt-get the right packages.

I will update the README.md accordingly.

liu-xunnn commented 10 months ago

Excellent!