File tree Expand file tree Collapse file tree 2 files changed +17
-8
lines changed Expand file tree Collapse file tree 2 files changed +17
-8
lines changed Original file line number Diff line number Diff line change 1- ifeq ($(OS ) ,linux)
2- # FIXME: detect musl libc robustly; just checking Alpine Linux' apk tool for now
3- ifeq (1,$(shell which apk &>/dev/null && echo 1))
4- IS_MUSL: =1
1+ ifndef IS_MUSL # LDC defines it externally
2+ ifeq ($(OS),linux)
3+ # FIXME: detect musl libc robustly; just checking Alpine Linux' apk tool for now
4+ ifeq (1,$(shell which apk >/dev/null 2>&1 && echo 1))
5+ IS_MUSL := 1
6+ endif
57 endif
68endif
79
Original file line number Diff line number Diff line change 11TESTS := importc_compare
22
3+ ifndef IS_MUSL # LDC defines it externally
4+ ifeq ($(OS),linux)
5+ # FIXME: detect musl libc robustly; just checking Alpine Linux' apk tool for now
6+ ifeq (1,$(shell which apk >/dev/null 2>&1 && echo 1))
7+ IS_MUSL := 1
8+ endif
9+ endif
10+ endif
11+
312# FIXME: fails on Alpine v3.21 with conflicting struct declarations in the C headers:
413# /usr/include/asm-generic/fcntl.h(195): Error: struct `importc_includes.flock` conflicts with struct `importc_includes.flock` at /usr/include/fcntl.h(24)
5- ifeq ($(OS ) ,linux)
6- ifeq (1,$(shell which apk &>/dev/null && echo 1))
7- TESTS :=
8- endif
14+ ifeq ($(IS_MUSL ) ,1)
15+ TESTS :=
916endif
1017
1118include ../common.mak
You can’t perform that action at this time.
0 commit comments