File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ set(fizzy_include_dir ${PROJECT_SOURCE_DIR}/lib/fizzy)
2727add_subdirectory (utils )
2828add_subdirectory (bench )
2929add_subdirectory (bench_internal )
30+ add_subdirectory (compilation )
3031add_subdirectory (smoketests )
3132add_subdirectory (spectests )
3233add_subdirectory (testfloat )
Original file line number Diff line number Diff line change 1+ # EVMC: Ethereum Client-VM Connector API.
2+ # Copyright 2018-2020 The EVMC Authors.
3+ # Licensed under the Apache License, Version 2.0.
4+
5+ # This CMake script creates multiple additional targets to test the compilation of public headers
6+ # with different C standards.
7+
8+ set (STANDARDS c_std_99 c_std_11)
9+
10+ foreach (STANDARD 99 11)
11+ set (target test-compile-c${STANDARD} )
12+ add_library (${target} OBJECT compilation_test.c )
13+ target_link_libraries (${target} PRIVATE fizzy::fizzy )
14+ set_target_properties (${target} PROPERTIES C_STANDARD ${STANDARD} C_EXTENSIONS OFF C_STANDARD_REQUIRED TRUE )
15+ endforeach ()
Original file line number Diff line number Diff line change 1+ // Fizzy: A fast WebAssembly interpreter
2+ // Copyright 2020 The Fizzy Authors.
3+ // SPDX-License-Identifier: Apache-2.0
4+
5+ #include <fizzy/fizzy.h>
6+
7+ void dummy () {}
You can’t perform that action at this time.
0 commit comments