Skip to content

Commit

Permalink
remove unnecessary deps
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Jan 10, 2025
1 parent 0408f11 commit dc452a0
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions subprojects/packagefiles/quickjs-ng/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,9 @@ project('quickjs-ng', 'c', version: '0.8.0', default_options: ['c_std=c11'])
cc = meson.get_compiler('c')
dep_m = cc.find_library('m', required: false)
dep_threads = dependency('threads')
deps = [dep_m, dep_threads, dependency('dl')]
deps = [dep_m, dep_threads]

add_project_arguments(
cc.get_supported_arguments('-Wall', '-D_CRT_SECURE_NO_WARNINGS'),
language: 'c',
)
add_project_arguments(cc.get_supported_arguments('-Wall'), language: 'c')


if cc.get_id() != 'msvc'
Expand Down Expand Up @@ -51,7 +48,7 @@ add_project_arguments(
language: 'c',
)

if cc.get_id() == 'msvc'
if cc.get_id() == 'msvc' or cc.get_id() == 'clang-cl'
add_project_arguments(
cc.get_supported_arguments('-Wno-unsafe-buffer-usage'),
language: 'c',
Expand Down Expand Up @@ -103,7 +100,7 @@ if cc.get_id() == 'msvc'
'/wd4710', # Function not inlined
'/wd4711', # Function was inlined
'/wd4820', # Padding added after construct
'/wd4996', # -Wdeprecated-declarations
# '/wd4996', # -Wdeprecated-declarations
'/wd5045', # Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified
),
language: 'c',
Expand Down

0 comments on commit dc452a0

Please sign in to comment.