-
Notifications
You must be signed in to change notification settings - Fork 31
Make -DUSE_REPL=On default #360
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
Changes from all commits
15321dc
bffb355
233d178
5b55c3d
d3752df
039332f
1e18aa7
a66d6ce
8867cf5
9432bb5
8f048f5
cb6a3a0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1191,7 +1191,6 @@ jobs: | |
else | ||
cmake -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} \ | ||
-DUSE_CLING=OFF \ | ||
-DUSE_REPL=ON \ | ||
-DCPPINTEROP_INCLUDE_DOCS=${{ matrix.documentation }} \ | ||
-DLLVM_DIR=$LLVM_BUILD_DIR/lib/cmake/llvm \ | ||
-DClang_DIR=$LLVM_BUILD_DIR/lib/cmake/clang \ | ||
|
@@ -1285,7 +1284,6 @@ jobs: | |
{ | ||
cmake -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} ` | ||
-DUSE_CLING=OFF ` | ||
-DUSE_REPL=ON ` | ||
-DLLVM_DIR="$env:LLVM_BUILD_DIR\lib\cmake\llvm" ` | ||
-DLLVM_ENABLE_WERROR=On ` | ||
-DClang_DIR="$env:LLVM_BUILD_DIR\lib\cmake\clang" -DCODE_COVERAGE=${{ env.CODE_COVERAGE }} -DCMAKE_INSTALL_PREFIX="$env:CPPINTEROP_DIR" ..\ | ||
|
@@ -1580,7 +1578,6 @@ jobs: | |
else | ||
emcmake cmake -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} \ | ||
-DUSE_CLING=OFF \ | ||
-DUSE_REPL=ON \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please make the similar changes in this file too https://github.com/compiler-research/CppInterOp/blob/main/.github/workflows/deploy-pages.yml There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I suggest he goes through all workflows in the repo. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for letting me know. |
||
-DCMAKE_PREFIX_PATH=$PREFIX \ | ||
-DLLVM_DIR=$LLVM_BUILD_DIR/lib/cmake/llvm \ | ||
-DLLD_DIR=$LLVM_BUILD_DIR/lib/cmake/lld \ | ||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -60,7 +60,7 @@ if( CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR ) | |||||
endif() | ||||||
|
||||||
option(USE_CLING "Use Cling as backend" OFF) | ||||||
option(USE_REPL "Use clang-repl as backend" OFF) | ||||||
option(USE_REPL "Use clang-repl as backend" ON) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As the block below points out the following
What can be done if we are using REPL as default .... is to make cling and REPL mutually exclusive. Which means we only use 1 of these by default.
So that if we encounter something like (the case you've not addressed yet) CppInterOp/.github/workflows/ci.yml Lines 873 to 874 in f794dee
We can just use USE_CLING and we don't need to explicitly set REPL to off. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So we just end up with either the default case (which is supplying nothing, understood that repl is on and cling is off) or we just use cling=ON (understood repl would be off) And if both if on by some chance we have the fatal error message. |
||||||
|
||||||
if (USE_CLING AND USE_REPL) | ||||||
message(FATAL_ERROR "We can only use Cling (USE_CLING=On) or Repl (USE_REPL=On), but not both of them.") | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@faze-geek If use_repl has been made the default then we should be able to remove all the uses of use_cling=off, since it should be off by default.