mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-29 07:48:32 +00:00
Fix the build
This commit is contained in:
parent
5dff63a31c
commit
3de35e196c
4 changed files with 9 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
||||||
#ifndef COSMOPOLITAN_LIBC_CALLS_SEMAPHORE_H_
|
#ifndef COSMOPOLITAN_LIBC_CALLS_SEMAPHORE_H_
|
||||||
#define COSMOPOLITAN_LIBC_CALLS_SEMAPHORE_H_
|
#define COSMOPOLITAN_LIBC_CALLS_SEMAPHORE_H_
|
||||||
|
#include "libc/calls/struct/timespec.h"
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
|
|
|
@ -6,9 +6,9 @@ COSMOPOLITAN_C_START_
|
||||||
int bsr(int) pureconst;
|
int bsr(int) pureconst;
|
||||||
int bsrl(long) pureconst;
|
int bsrl(long) pureconst;
|
||||||
int bsrll(long long) pureconst;
|
int bsrll(long long) pureconst;
|
||||||
int bsr128(uint128_t) pureconst;
|
|
||||||
|
|
||||||
#if defined(__GNUC__) && defined(__x86_64__) && !defined(__STRICT_ANSI__)
|
#if defined(__GNUC__) && defined(__x86_64__) && !defined(__STRICT_ANSI__)
|
||||||
|
int bsr128(uint128_t) pureconst;
|
||||||
#define bsr(u) \
|
#define bsr(u) \
|
||||||
({ \
|
({ \
|
||||||
unsigned BiTs; \
|
unsigned BiTs; \
|
||||||
|
|
|
@ -7,7 +7,6 @@ LIBC_THREAD_ARTIFACTS += LIBC_THREAD_A
|
||||||
LIBC_THREAD = $(LIBC_THREAD_A_DEPS) $(LIBC_THREAD_A)
|
LIBC_THREAD = $(LIBC_THREAD_A_DEPS) $(LIBC_THREAD_A)
|
||||||
LIBC_THREAD_A = o/$(MODE)/libc/thread/thread.a
|
LIBC_THREAD_A = o/$(MODE)/libc/thread/thread.a
|
||||||
LIBC_THREAD_A_FILES := $(wildcard libc/thread/*)
|
LIBC_THREAD_A_FILES := $(wildcard libc/thread/*)
|
||||||
LIBC_THREAD_A_HDRS = $(filter %.h,$(LIBC_THREAD_A_FILES))
|
|
||||||
LIBC_THREAD_A_SRCS_S = $(filter %.S,$(LIBC_THREAD_A_FILES))
|
LIBC_THREAD_A_SRCS_S = $(filter %.S,$(LIBC_THREAD_A_FILES))
|
||||||
LIBC_THREAD_A_SRCS_C = $(filter %.c,$(LIBC_THREAD_A_FILES))
|
LIBC_THREAD_A_SRCS_C = $(filter %.c,$(LIBC_THREAD_A_FILES))
|
||||||
|
|
||||||
|
@ -15,6 +14,13 @@ LIBC_THREAD_A_SRCS = \
|
||||||
$(LIBC_THREAD_A_SRCS_S) \
|
$(LIBC_THREAD_A_SRCS_S) \
|
||||||
$(LIBC_THREAD_A_SRCS_C)
|
$(LIBC_THREAD_A_SRCS_C)
|
||||||
|
|
||||||
|
LIBC_THREAD_A_HDRS = \
|
||||||
|
libc/thread/spawn.h \
|
||||||
|
libc/thread/thread.h \
|
||||||
|
libc/thread/thread2.h \
|
||||||
|
libc/thread/tls.h \
|
||||||
|
libc/thread/tls2.h
|
||||||
|
|
||||||
LIBC_THREAD_A_OBJS = \
|
LIBC_THREAD_A_OBJS = \
|
||||||
$(LIBC_THREAD_A_SRCS_S:%.S=o/$(MODE)/%.o) \
|
$(LIBC_THREAD_A_SRCS_S:%.S=o/$(MODE)/%.o) \
|
||||||
$(LIBC_THREAD_A_SRCS_C:%.c=o/$(MODE)/%.o)
|
$(LIBC_THREAD_A_SRCS_C:%.c=o/$(MODE)/%.o)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue