Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8374

SDK • Re: Extra compiler flags, only for user code

$
0
0
Ah, thanks!

I had to use some extra CMake stuff to make it apply to all my sources, so i'll put that here for reference for others:

Code:

get_target_property(SRCFILES ${PROJECT} SOURCES)foreach(SRCFILE ${SRCFILES})        set_source_files_properties(${SRCFILE} PROPERTIES COMPILE_FLAGS "-fsanitize=kernel-address -fstack-protector-all")endforeach()

Statistics: Posted by triss64738 — Sat May 31, 2025 10:11 pm



Viewing all articles
Browse latest Browse all 8374

Trending Articles