Skip to content

Commit 3a60923

Browse files
committed
Attempt to set the libwolv cflags correctly (with the right OS setting).
1 parent ed27969 commit 3a60923

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

dep/build.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,12 @@
605605
path="dep/r/libwolv",
606606
)
607607

608+
libwolv_cflags = (
609+
["-DOS_MACOS"]
610+
if config.osx
611+
else ["-DOS_WINDOWS"] if config.windows else ["-DOS_LINUX"]
612+
)
613+
608614
cxxlibrary(
609615
name="libwolv_core",
610616
srcs=[
@@ -680,6 +686,8 @@
680686
}
681687
),
682688
deps=[".+libwolv_repo"],
689+
cflags=libwolv_cflags,
690+
caller_cflags=libwolv_cflags,
683691
)
684692

685693
if config.osx:

0 commit comments

Comments
 (0)