Skip to content

Commit

Permalink
Merge pull request #422 from ethereum/drop-c90
Browse files Browse the repository at this point in the history
Officially drop C90 standard support
  • Loading branch information
chfast authored Sep 13, 2019
2 parents bf79cf2 + 59663a1 commit 3379a94
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,12 @@ Please visit the [documentation].

| Language | Supported Versions | Supported Compilers
| ----------------------------- | --------------------- | ------------------------------
| **C** | C90[¹](#n1), C99, C11 | GCC 6+, clang 3.8+, MSVC 2015+
| **C** | C99, C11 | GCC 6+, clang 3.8+, MSVC 2015+
| **C++** | C++11, C++14, C++17 | GCC 6+, clang 3.8+, MSVC 2015+
| **Go** _(bindings)_ | 1.9 - 1.12 |
| **Rust** _(bindings)_[²](#n2) | 2018 edition | 1.31.0 and newer
| **Rust** _(bindings)_[¹](#n1) | 2018 edition | 1.31.0 and newer

<b id="n1">1</b>. The C90 support is limited to the core `evmc.h` header only.\
<b id="n2">2</b>. Rust support is limited and not complete yet, but it is mostly functional already. Breaking changes are possible at this stage.
<b id="n1">1</b>. Rust support is limited and not complete yet, but it is mostly functional already. Breaking changes are possible at this stage.

## Related projects

Expand Down
2 changes: 1 addition & 1 deletion test/integration/compilation/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# This CMake script creates multiple additional targets to test the compilation of public headers
# with different C and C++ standards.

set(standards c_std_90;c_std_99;c_std_11;cxx_std_11;cxx_std_14)
set(standards c_std_99;c_std_11;cxx_std_11;cxx_std_14)
if(NOT CMAKE_CXX_COMPILER_ID STREQUAL Clang OR CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 3.8.1)
list(APPEND standards cxx_std_17)
endif()
Expand Down
6 changes: 1 addition & 5 deletions test/integration/compilation/compilation_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@
/* Test compilation of C public headers. */

#include <evmc/evmc.h>
#include <evmc/helpers.h>
#include <evmc/instructions.h>
#include <evmc/loader.h>
#include <evmc/utils.h>

#if _MSC_VER || __STDC_VERSION__ >= 199901
/* Skip C90 standard because contains inline keyword. */
#include <evmc/helpers.h>
#endif

0 comments on commit 3379a94

Please sign in to comment.