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

[cmake] Generate CMakeArgs.txt file to store CMake src, build dir and invocation arguments #815

Merged
merged 1 commit into from
Mar 10, 2024

Conversation

sauravUppoor
Copy link
Contributor

Fixes #811

This PR updates the CMakeLists.txt file with steps to store cmake command line arguments into a new file CMakeArgs.txt in the build directory.

Testing

Command

cmake -S ../clad -DClang_DIR=/home/saurav/Desktop/llvm-dev/build/ -DLLVM_DIR=/home/saurav/Desktop/llvm-dev/build/ -DCMAKE_INSTALL_PREFIX=../inst -DLLVM_EXTERNAL_LIT="$(which lit)" -B ../build

CMakeArgs.txt file content:

-S/home/saurav/Desktop/clad-dev/clad -B/home/saurav/Desktop/clad-dev/build  -DClang_DIR="/home/saurav/Desktop/llvm-dev/build/" -DLLVM_DIR="/home/saurav/Desktop/llvm-dev/build/" -DLLVM_EXTERNAL_LIT="/home/saurav/.local/bin/lit"

Copy link

codecov bot commented Mar 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.89%. Comparing base (48527c2) to head (096a252).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #815   +/-   ##
=======================================
  Coverage   94.89%   94.89%           
=======================================
  Files          49       49           
  Lines        7478     7478           
=======================================
  Hits         7096     7096           
  Misses        382      382           

@vgvassilev vgvassilev added this to the v1.5 milestone Mar 10, 2024
Copy link
Owner

@vgvassilev vgvassilev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@vgvassilev vgvassilev merged commit e930a4a into vgvassilev:master Mar 10, 2024
81 checks passed
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

Successfully merging this pull request may close these issues.

Store the cmake invocation arguments on a file in the build directory
2 participants