Skip to content

Commit

Permalink
Enable C lang in aws_check_sanitizer
Browse files Browse the repository at this point in the history
  • Loading branch information
sfodagain committed Jul 12, 2024
1 parent 1a8cf32 commit de76217
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmake/AwsSanitizers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ function(aws_check_sanitizer sanitizer)

# Need to set this here so that the flag is passed to the linker
set(CMAKE_REQUIRED_FLAGS ${sanitizer_test_flag})
# C language may be disabled for C++ projects
enable_language(C)
check_c_compiler_flag(${sanitizer_test_flag} ${out_variable})
else()
set(${out_variable} 0 PARENT_SCOPE)
Expand Down

0 comments on commit de76217

Please sign in to comment.