summaryrefslogblamecommitdiffstats
path: root/CMake/Fixups.cmake
blob: f671bd6ac553dc5b11d7ce3986a9ce62c9616b48 (plain) (tree)
1
2
3
4
5
6
7
                     





                                                                                                              
function(emit_fixups)
	if(NOT MSVC AND "${CMAKE_SYSTEM_PROCESSOR}" MATCHES "arm")
		# mbed TLS uses the frame pointer's register in inline assembly for its bignum implementation:
		# https://tls.mbed.org/kb/development/arm-thumb-error-r7-cannot-be-used-in-asm-here
		target_compile_options(mbedcrypto PRIVATE -fomit-frame-pointer)
	endif()
endfunction()