Conversation
igchor
left a comment
There was a problem hiding this comment.
Reviewed 2 of 2 files at r1.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @michalbiesek)
Codecov Report
@@ Coverage Diff @@
## master #1102 +/- ##
==========================================
- Coverage 94.39% 94.31% -0.08%
==========================================
Files 51 51
Lines 5193 5193
==========================================
- Hits 4902 4898 -4
- Misses 291 295 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
lukaszstolarczuk
left a comment
There was a problem hiding this comment.
this looks good! thanks for this change
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @michalbiesek)
CMakeLists.txt, line 157 at r1 (raw file):
endif() # Find Clang
with this approach, we don't even need this status printing, I believe.
The current compiler is checked at the beginning of the CMake execution, e.g.:
-- The CXX compiler identification is Clang 9.0.1
-- Check for working CXX compiler: /usr/bin/clang++-9
-- Check for working CXX compiler: /usr/bin/clang++-9 -- works
tests/ctest_helpers.cmake, line 142 at r1 (raw file):
function(build_test_atomic name) build_test(${name} ${ARGN}) if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
what about CMAKE_C_COMPILER_ID ?
we have some check in/tests/CMakeLists.txt file for GNU, and we check both variables...
tests/ctest_helpers.cmake, line 142 at r1 (raw file):
function(build_test_atomic name) build_test(${name} ${ARGN}) if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
how about MATCHES instead of STREQUAL...?
1e6a675 to
fa5db78
Compare
michalbiesek
left a comment
There was a problem hiding this comment.
Reviewable status: 0 of 2 files reviewed, 1 unresolved discussion (waiting on @igchor and @lukaszstolarczuk)
CMakeLists.txt, line 157 at r1 (raw file):
Previously, lukaszstolarczuk (Łukasz Stolarczuk) wrote…
with this approach, we don't even need this status printing, I believe.
The current compiler is checked at the beginning of the CMake execution, e.g.:
-- The CXX compiler identification is Clang 9.0.1 -- Check for working CXX compiler: /usr/bin/clang++-9 -- Check for working CXX compiler: /usr/bin/clang++-9 -- works
Done (removed)
tests/ctest_helpers.cmake, line 142 at r1 (raw file):
Previously, lukaszstolarczuk (Łukasz Stolarczuk) wrote…
how about
MATCHESinstead ofSTREQUAL...?
Done.
tests/ctest_helpers.cmake, line 142 at r1 (raw file):
Previously, lukaszstolarczuk (Łukasz Stolarczuk) wrote…
what about
CMAKE_C_COMPILER_ID?we have some check in
/tests/CMakeLists.txtfile for GNU, and we check both variables...
Done - out of curiosity can you give me the use case where you set the "C compiler" and for the CPP as a different one e.g. Clang for C and GCC for C++
- use CMAKE_CXX_COMPILER_VERSION/CMAKE_C[XX]_COMPILER_ID for setting compiler conditions - fixes pmem#1090
fa5db78 to
7e916ad
Compare
lukaszstolarczuk
left a comment
There was a problem hiding this comment.
Reviewed 2 of 2 files at r2.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @michalbiesek)
tests/ctest_helpers.cmake, line 142 at r1 (raw file):
Previously, michalbiesek wrote…
Done - out of curiosity can you give me the use case where you set the "C compiler" and for the CPP as a different one e.g. Clang for C and GCC for C++
yeah, there's probably none, that's why it was more of an open question (rather than a blocking issue). Thx for updating
setting compiler conditions
This change is