mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-06-27 18:32:34 +00:00
use std=c99
This commit is contained in:
parent
489f09a843
commit
d9ec4344fc
@ -7,6 +7,8 @@ include_directories(ed25519-donna)
|
|||||||
set_source_files_properties(aeskey.c PROPERTIES
|
set_source_files_properties(aeskey.c PROPERTIES
|
||||||
COMPILE_FLAGS -Wno-sequence-point)
|
COMPILE_FLAGS -Wno-sequence-point)
|
||||||
|
|
||||||
|
set(CMAKE_C_FLAGS "-std=c99")
|
||||||
|
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
set_source_files_properties(${SOURCES} PROPERTIES LANGUAGE CXX)
|
set_source_files_properties(${SOURCES} PROPERTIES LANGUAGE CXX)
|
||||||
endif(MSVC)
|
endif(MSVC)
|
||||||
@ -22,4 +24,4 @@ if (TREZOR_CRYPTO_TESTS)
|
|||||||
add_executable(test-openssl test-openssl.c)
|
add_executable(test-openssl test-openssl.c)
|
||||||
target_link_libraries(test-openssl TrezorCrypto check rt pthread m crypto)
|
target_link_libraries(test-openssl TrezorCrypto check rt pthread m crypto)
|
||||||
add_test(NAME trezor-crypto-openssl COMMAND test-openssl 100)
|
add_test(NAME trezor-crypto-openssl COMMAND test-openssl 100)
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user