Skip to content

Commit

Permalink
Build system adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuclearistt committed Oct 31, 2024
1 parent 1e23b1e commit 951692b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
14 changes: 4 additions & 10 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ project(
'c',
version: '1.0.3',
default_options: {
'optimization': '3',
'optimization': '2',
'warning_level': '3',
'b_lto': 'true',
'b_lto_mode': 'thin',
'b_vscrt': 'mt',
'c_std': 'c2x',
'c_std': 'c23',
'c_winlibs': [
'advapi32.lib',
'kernel32.lib',
Expand All @@ -19,21 +17,17 @@ project(
],
},
)
res = import('windows').compile_resources(
'tek-injector.rc',
include_directories: '/usr/x86_64-pc-windows-msvc/include',
)
executable(
'tek-injector',
'main.c',
'vm-stubs.s',
res,
import('windows').compile_resources('tek-injector.rc'),
win_subsystem: 'windows',
c_args: '/GS-',
link_args: [
'/ENTRY:entry',
'/MANIFEST:EMBED',
'/MANIFESTINPUT:../tek-injector.manifest',
'/MANIFESTINPUT:' + meson.current_source_dir() / 'tek-injector.manifest',
'/MANIFESTUAC:level=\'requireAdministrator\'',
],
)
8 changes: 8 additions & 0 deletions x86_64-windows-clang.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[binaries]
c = 'clang-cl'
c_ld = 'lld-link'
windres = 'llvm-rc'

[built-in options]
c_args = '-flto=thin -fuse-ld=lld'
c_ld_args = '-flto=thin'

0 comments on commit 951692b

Please sign in to comment.