mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 05:10:11 +01:00
subprojects: errno: support for windows
This adds the support necessary to compile for windows. Reviewed-by: David Gilhooley <djgilhooley.gmail.com>
This commit is contained in:
parent
b6094567a7
commit
a2b42083e4
1 changed files with 5 additions and 1 deletions
|
|
@ -8,13 +8,17 @@ project(
|
|||
license : 'MIT OR Apache-2.0',
|
||||
)
|
||||
|
||||
os_deps = []
|
||||
libc = subproject('libc-0.2-rs').get_variable('lib')
|
||||
if host_machine.system() == 'windows'
|
||||
os_deps += subproject('windows-sys-0.6-rs').get_variable('lib')
|
||||
endif
|
||||
|
||||
lib = static_library(
|
||||
'libc_errno',
|
||||
'src/lib.rs',
|
||||
override_options : ['rust_std=2018', 'build.rust_std=2018'],
|
||||
link_with: [libc],
|
||||
link_with: [libc] + os_deps,
|
||||
rust_abi : 'rust',
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue