We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 957cedd commit 5b1a3deCopy full SHA for 5b1a3de
CMakeLists.txt
@@ -93,6 +93,12 @@ if (CMAKE_C_COMPILER_ID STREQUAL "MSVC")
93
elseif (CMAKE_C_COMPILER_ID STREQUAL "GNU" OR
94
CMAKE_C_COMPILER_ID STREQUAL "Clang")
95
target_compile_options(printf PRIVATE -Wall -Wextra -pedantic -Wconversion)
96
+ if (ALIAS_STANDARD_FUNCTION_NAMES)
97
+ # This is important for preventing our aliased implementation
98
+ # from being replaced, e.g. printf("%c", 'a') by putchar('a');
99
+ # clang and GCC apparently do this as an optimization
100
+ target_compile_options(printf PUBLIC -fno-builtin-printf)
101
+ endif()
102
endif()
103
104
if (BUILD_TESTS)
0 commit comments