Skip to content

Commit

Permalink
update meson build file
Browse files Browse the repository at this point in the history
  • Loading branch information
Unam3dd committed Jun 2, 2024
1 parent e8d330b commit 6371d3f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
6 changes: 3 additions & 3 deletions inc/eth-types.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
//
//////////////////////////////////////

#ifndef NO_STATIC
#define STATIC static
#else
#ifdef NO_STATIC
#define STATIC
#else
#define STATIC static
#endif

///////////////////////////////////////
Expand Down
6 changes: 4 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ endif
#
######################################

criterion_dep = dependency('criterion', required: false, allow_fallback: true)
if get_option('build_tests')
criterion = dependency('criterion', required: true)
endif

######################################
#
Expand Down Expand Up @@ -134,7 +136,7 @@ foreach test_file : tests
test_exec = executable(test_name,
test_file,
c_args: ['-g3', '-Os', '-fPIC'],
dependencies: [criterion_dep],
dependencies: [criterion],
link_with: lib_static,
include_directories: incdir,
install: false,
Expand Down
8 changes: 0 additions & 8 deletions subprojects/criterion.wrap

This file was deleted.

0 comments on commit 6371d3f

Please sign in to comment.