system/Clock: compile only on Windows

This commit is contained in:
Max Kellermann 2022-11-28 21:16:27 +01:00
parent 88d5347d94
commit 25da798e7a
1 changed files with 6 additions and 1 deletions

View File

@ -1,6 +1,5 @@
system_sources = [
'EventPipe.cxx',
'Clock.cxx',
]
if host_machine.system() == 'linux'
@ -12,6 +11,12 @@ if host_machine.system() == 'linux'
]
endif
if host_machine.system() == 'windows'
system_sources += [
'Clock.cxx',
]
endif
system = static_library(
'system',
system_sources,