Skip to content

Commit

Permalink
Tweaked some Meson settings
Browse files Browse the repository at this point in the history
  • Loading branch information
fangfufu committed Aug 26, 2024
1 parent 5021127 commit a09b1f3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
19 changes: 10 additions & 9 deletions meson.build
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
project('httpdirfs', 'c',
version: '1.2.6',
license: ' GPL-3.0-or-later'
license: 'GPL-3.0-or-later',
default_options: [
'debug=false',
'buildtype=release',
'werror=true',
'warning_level=3'
]
)

srcs = [
Expand All @@ -17,14 +23,9 @@ srcs = [
]

c_args = [
'-g',
'-O2',
'-Wall',
'-Wextra',
'-Wshadow',
'-rdynamic',
'-pthread',
'-D_GNU_SOURCE',
'-D_FILE_OFFSET_BITS=64',
'-DVERSION="' + meson.project_version() + '"'
]

Expand All @@ -40,7 +41,7 @@ httpdirfs = executable('httpdirfs',
dependencies : [gumbo_dep, libcurl_dep, fuse_dep, uuid_dep, expat_dep, openssl_dep],
c_args: c_args,
install: true,
install_dir: get_option('bindir')
install_dir: get_option('bindir'),
)

if (host_machine.system() == 'linux')
Expand All @@ -62,4 +63,4 @@ run_target('format',
command : 'scripts/format.sh')

run_target('doxygen',
command : 'scripts/doxygen.sh')
command : 'scripts/doxygen.sh')
2 changes: 1 addition & 1 deletion src/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,7 @@ void Cache_close(Cache *cf)
lprintf(cache_lock_debug,
"thread %x: unlocking cf_lock;\n", pthread_self());
PTHREAD_MUTEX_UNLOCK(&cf_lock);
return Cache_free(cf);
Cache_free(cf);
}

/**
Expand Down

0 comments on commit a09b1f3

Please sign in to comment.