-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #708 from LLNL/bugfix/white238/nan_gtest
Add warning flag to silence warning promoted to error in IntelLLVM
- Loading branch information
Showing
5 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
13 changes: 13 additions & 0 deletions
13
thirdparty_builtin/patches/gtest-2024-10-18-suppress-tautological-intel-llvm.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/thirdparty_builtin/googletest/googletest/cmake/internal_utils.cmake b/thirdparty_builtin/googletest/googletest/cmake/internal_utils.cmake | ||
index 6ddb794..0037804 100644 | ||
--- a/thirdparty_builtin/googletest/googletest/cmake/internal_utils.cmake | ||
+++ b/thirdparty_builtin/googletest/googletest/cmake/internal_utils.cmake | ||
@@ -134,6 +134,8 @@ macro(config_compiler_and_linker) | ||
set(cxx_no_exception_flags "+noeh -DGTEST_HAS_EXCEPTIONS=0") | ||
# RTTI can not be disabled in HP aCC compiler. | ||
set(cxx_no_rtti_flags "") | ||
+ elseif (CMAKE_CXX_COMPILER_ID STREQUAL "IntelLLVM") | ||
+ set(cxx_base_flags "-Wno-tautological-compare") | ||
endif() | ||
|
||
# The pthreads library is available and allowed? |