mirror of
https://github.com/status-im/evmc.git
synced 2025-02-23 00:18:24 +00:00
Merge pull request #30 from ethereum/pedantic-c
Make header compilable in C99 and C11 pedantic mode
This commit is contained in:
commit
d7c0312f31
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,6 @@
|
||||
# EVMC -- Ethereum Client-VM Connector API
|
||||
# EVMC: Ethereum Client-VM Connector API.
|
||||
# Copyright 2018 Pawel Bylica.
|
||||
# Licensed under the MIT License. See the LICENSE file.
|
||||
|
||||
add_subdirectory(integration)
|
||||
add_subdirectory(vmtester)
|
||||
|
5
test/integration/CMakeLists.txt
Normal file
5
test/integration/CMakeLists.txt
Normal file
@ -0,0 +1,5 @@
|
||||
# EVMC: Ethereum Client-VM Connector API.
|
||||
# Copyright 2018 Pawel Bylica.
|
||||
# Licensed under the MIT License. See the LICENSE file.
|
||||
|
||||
add_subdirectory(compilation)
|
11
test/integration/compilation/CMakeLists.txt
Normal file
11
test/integration/compilation/CMakeLists.txt
Normal file
@ -0,0 +1,11 @@
|
||||
# EVMC: Ethereum Client-VM Connector API.
|
||||
# Copyright 2018 Pawel Bylica.
|
||||
# Licensed under the MIT License. See the LICENSE file.
|
||||
|
||||
add_library(test-compile-c99 STATIC compilation_test.c)
|
||||
target_link_libraries(test-compile-c99 PRIVATE evmc)
|
||||
set_target_properties(test-compile-c99 PROPERTIES C_STANDARD 99 C_EXTENSIONS OFF)
|
||||
|
||||
add_library(test-compile-c11 STATIC compilation_test.c)
|
||||
target_link_libraries(test-compile-c11 PRIVATE evmc)
|
||||
set_target_properties(test-compile-c11 PROPERTIES C_STANDARD 11 C_EXTENSIONS OFF)
|
7
test/integration/compilation/compilation_test.c
Normal file
7
test/integration/compilation/compilation_test.c
Normal file
@ -0,0 +1,7 @@
|
||||
/* EVMC: Ethereum Client-VM Connector API.
|
||||
* Copyright 2018 Pawel Bylica.
|
||||
* Licensed under the MIT License. See the LICENSE file.
|
||||
*/
|
||||
|
||||
#include <evmc/evmc.h>
|
||||
|
@ -1,4 +1,4 @@
|
||||
# EVMC -- Ethereum Client-VM Connector API
|
||||
# EVMC: Ethereum Client-VM Connector API.
|
||||
# Copyright 2018 Pawel Bylica.
|
||||
# Licensed under the MIT License. See the LICENSE file.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user