Skip to content

Commit

Permalink
Fixed case when users explicitly pass different gcc ABI via cxx flags (
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-lavrenov authored and alvoron committed Apr 29, 2024
1 parent 69e6c54 commit ee941f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/developer_package/target_flags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ function(ov_get_compiler_definition definition var)
endif()

execute_process(COMMAND echo "#include <string>"
COMMAND "${CMAKE_CXX_COMPILER}" -x c++ - -E -dM
COMMAND "${CMAKE_CXX_COMPILER}" -x c++ - -E -dM ${CMAKE_CXX_FLAGS}
COMMAND grep -E "^#define ${definition} "
OUTPUT_VARIABLE output_value
ERROR_VARIABLE error_message
Expand Down

0 comments on commit ee941f7

Please sign in to comment.