File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 11project (' libgitledger' , ' c' ,
22 version : ' 0.1.0' ,
3- default_options : [' c_std=c17 ' , ' warning_level=3' , ' werror=true' ]
3+ default_options : [' c_std=c99 ' , ' warning_level=3' , ' werror=true' ]
44)
55
66vendor_libgit2 = get_option (' vendor_libgit2' )
@@ -54,6 +54,7 @@ libgitledger = static_library(
5454 include_directories : include_dir,
5555 dependencies : lib_deps,
5656 c_args : lib_c_args + [' -DGITLEDGER_BUILD' ],
57+ link_args : [' -nostdlib' ],
5758)
5859
5960tests_version = executable (
Original file line number Diff line number Diff line change 11#include "gitledger/context.h"
22#include "gitledger/error.h"
33
4+ #ifdef NDEBUG
5+ static void test_teardown_refusal_with_live_errors (void );
6+ #endif
7+
8+
49#include <assert.h>
510#include <stdio.h>
611#include <stdlib.h>
@@ -170,7 +175,6 @@ int main(void)
170175 test_allocator_balance ();
171176#ifdef NDEBUG
172177 /* Release builds must refuse context teardown with live errors. */
173- extern void test_teardown_refusal_with_live_errors (void );
174178 test_teardown_refusal_with_live_errors ();
175179#endif
176180 return 0 ;
Original file line number Diff line number Diff line change @@ -99,6 +99,8 @@ start_job() {
9999 -e RUN_TIDY=" ${run_tidy} " \
100100 -e LIBGITLEDGER_SUPPORTS_SANITIZERS=" ${supports_sanitizers} " \
101101 -e LIBGITLEDGER_SUPPORTS_ANALYZE=" ${supports_analyze} " \
102+ -e SUPPORTS_SANITIZERS=" ${supports_sanitizers} " \
103+ -e SUPPORTS_ANALYZE=" ${supports_analyze} " \
102104 -e LIBGITLEDGER_MATRIX_JOB=" ${name} " \
103105 -v " ${REPO_ROOT} :/workspace:ro" \
104106 " ${IMAGE_NAME} " \
You can’t perform that action at this time.
0 commit comments