-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
Add build step for ICPC #3229
Add build step for ICPC #3229
Changes from all commits
f65ade0
ab557ae
15eaae2
7b60a2a
604e449
e40843f
3822537
42acea3
0152bac
8cbe3ed
23a7a2d
3a4da7c
3e767c7
e1190d6
f9dfd63
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 |
---|---|---|
|
@@ -877,6 +877,22 @@ add_custom_target(ci_cuda_example | |
COMMAND ${CMAKE_COMMAND} --build ${PROJECT_BINARY_DIR}/build_cuda_example | ||
) | ||
|
||
############################################################################### | ||
# Intel C++ Compiler | ||
############################################################################### | ||
|
||
add_custom_target(ci_icpc | ||
COMMAND ${CMAKE_COMMAND} | ||
-DCMAKE_BUILD_TYPE=Debug -GNinja | ||
-DCMAKE_C_COMPILER=icc -DCMAKE_CXX_COMPILER=icpc | ||
-DCMAKE_CXX_FLAGS="-DJSON_HAS_FILESYSTEM=0 -DJSON_HAS_EXPERIMENTAL_FILESYSTEM=0" | ||
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. Appears as
|
||
-DJSON_BuildTests=ON -DJSON_FastTests=ON | ||
-S${PROJECT_SOURCE_DIR} -B${PROJECT_BINARY_DIR}/build_icpc | ||
COMMAND ${CMAKE_COMMAND} --build ${PROJECT_BINARY_DIR}/build_icpc | ||
COMMAND cd ${PROJECT_BINARY_DIR}/build_icpc && ${CMAKE_CTEST_COMMAND} --parallel ${N} --exclude-regex "test-unicode" --output-on-failure | ||
COMMENT "Compile and test with ICPC" | ||
) | ||
|
||
############################################################################### | ||
# Clean up all generated files. | ||
############################################################################### | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,6 +49,9 @@ target_compile_options(test_main PUBLIC | |
# https://github.com/nlohmann/json/issues/1114 | ||
$<$<CXX_COMPILER_ID:MSVC>:/bigobj> $<$<BOOL:${MINGW}>:-Wa,-mbig-obj> | ||
|
||
# https://github.com/nlohmann/json/pull/3229 | ||
$<$<CXX_COMPILER_ID:Intel>:-diag-disable=2196> | ||
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. This may need a version check. It's Also, 1786 to suppress deprecation warnings. 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 couldn't find a version number in the documentation. |
||
|
||
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wno-deprecated;-Wno-float-equal> | ||
$<$<CXX_COMPILER_ID:GNU>:-Wno-deprecated-declarations> | ||
) | ||
|
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.
I'd suggest using the literal style block scalar
|
over the flow style one>
for multiline commands: