Skip to content

Commit 3e6dad9

Browse files
committed
cmake: xcc: do not use -fno-printf-return-value
XCC does not recognize -fno-printf-return-value as compiler flag. So skip it. Signed-off-by: Daniel Leung <[email protected]>
1 parent 10d4973 commit 3e6dad9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmake/compiler/xcc/compiler_flags.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@ set_compiler_property(PROPERTY no_position_independent "")
1515

1616
# Remove after testing that -Wshadow works
1717
set_compiler_property(PROPERTY warning_shadow_variables)
18+
19+
# xcc does not recognize -fno-printf-return-value
20+
set_compiler_property(PROPERTY no_printf_return_value)

0 commit comments

Comments
 (0)