mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 11:37:35 +00:00
acd6c32184
This change should fix the Windows issues Qt Creator has been having, by ensuring accept() and accept4() work in O_NONBLOCK mode. I switched away from AcceptEx() which is buggy, back to using WSAAccept(). This requires making a tradeoff where we have to accept a busy loop. However it is low latency in nature, just like our new and improved Windows poll() code. I was furthermore able to eliminate a bunch of Windows-related test todos.
78 lines
1.9 KiB
Makefile
78 lines
1.9 KiB
Makefile
#-*-mode:makefile-gmake;indent-tabs-mode:t;tab-width:8;coding:utf-8-*-┐
|
|
#── vi: set noet ft=make ts=8 sw=8 fenc=utf-8 :vi ────────────────────┘
|
|
|
|
PKGS += TEST_POSIX
|
|
|
|
TEST_POSIX_SRCS := \
|
|
$(wildcard test/posix/*.c)
|
|
|
|
TEST_POSIX_SRCS_TEST = \
|
|
$(filter %_test.c,$(TEST_POSIX_SRCS))
|
|
|
|
TEST_POSIX_OBJS = \
|
|
$(TEST_POSIX_SRCS:%.c=o/$(MODE)/%.o)
|
|
|
|
TEST_POSIX_COMS = \
|
|
$(TEST_POSIX_SRCS_TEST:%.c=o/$(MODE)/%) \
|
|
o/$(MODE)/test/posix/file_offset_exec_prog
|
|
|
|
TEST_POSIX_BINS = \
|
|
$(TEST_POSIX_COMS) \
|
|
$(TEST_POSIX_COMS:%=%.dbg)
|
|
|
|
TEST_POSIX_TESTS = \
|
|
$(TEST_POSIX_SRCS_TEST:%.c=o/$(MODE)/%.ok)
|
|
|
|
TEST_POSIX_CHECKS = \
|
|
$(TEST_POSIX_SRCS_TEST:%.c=o/$(MODE)/%.runs)
|
|
|
|
TEST_POSIX_DIRECTDEPS = \
|
|
LIBC_CALLS \
|
|
LIBC_FMT \
|
|
LIBC_INTRIN \
|
|
LIBC_MEM \
|
|
LIBC_PROC \
|
|
LIBC_LOG \
|
|
LIBC_RUNTIME \
|
|
LIBC_SOCK \
|
|
LIBC_STDIO \
|
|
LIBC_STR \
|
|
LIBC_SYSV \
|
|
LIBC_THREAD \
|
|
THIRD_PARTY_MUSL \
|
|
|
|
TEST_POSIX_DEPS := \
|
|
$(call uniq,$(foreach x,$(TEST_POSIX_DIRECTDEPS),$($(x))))
|
|
|
|
o/$(MODE)/test/posix/posix.pkg: \
|
|
$(TEST_POSIX_OBJS) \
|
|
$(foreach x,$(TEST_POSIX_DIRECTDEPS),$($(x)_A).pkg)
|
|
|
|
o/$(MODE)/test/posix/%.dbg: \
|
|
$(TEST_POSIX_DEPS) \
|
|
o/$(MODE)/test/posix/%.o \
|
|
o/$(MODE)/test/posix/posix.pkg \
|
|
$(CRT) \
|
|
$(APE_NO_MODIFY_SELF)
|
|
@$(APELINK)
|
|
|
|
o/$(MODE)/test/posix/file_offset_exec_test.dbg: \
|
|
$(TEST_POSIX_DEPS) \
|
|
o/$(MODE)/test/posix/file_offset_exec_test.o \
|
|
o/$(MODE)/test/posix/file_offset_exec_prog.zip.o \
|
|
o/$(MODE)/test/posix/posix.pkg \
|
|
$(CRT) \
|
|
$(APE_NO_MODIFY_SELF)
|
|
@$(APELINK)
|
|
|
|
o/$(MODE)/test/posix/file_offset_exec_prog.zip.o: private \
|
|
ZIPOBJ_FLAGS += \
|
|
-B
|
|
|
|
o/$(MODE)/test/posix/fread3gb_test.runs: \
|
|
private QUOTA += -F5gb -M5gb
|
|
|
|
.PHONY: o/$(MODE)/test/posix
|
|
o/$(MODE)/test/posix: \
|
|
$(TEST_POSIX_BINS) \
|
|
$(TEST_POSIX_CHECKS)
|