mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-14 06:59:10 +00:00
Fix Landlock Make so it can read pattern rule vars
It turned out that specifying all SRCS and INCS as dependencies on the pattern rules for all headers, caused `make` memory usage to skyrocket from 40mb ot 160mb. This change also reduces the build graph another 4%.
This commit is contained in:
parent
62ca1b0902
commit
ead3fc2b31
53 changed files with 105 additions and 93 deletions
|
@ -1,5 +1,6 @@
|
|||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/time/struct/tm.h"
|
||||
#include "libc/time/time.h"
|
||||
#include "libc/time/tz.internal.h"
|
||||
#include "third_party/python/Include/object.h"
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/time/struct/tm.h"
|
||||
#include "libc/time/time.h"
|
||||
|
||||
char *ctime(const time_t *timep) {
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
#include "libc/runtime/gc.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/sysv/consts/o.h"
|
||||
#include "libc/time/struct/tm.h"
|
||||
#include "libc/time/time.h"
|
||||
#include "libc/time/tz.internal.h"
|
||||
#include "libc/time/tzfile.internal.h"
|
||||
|
|
|
@ -17,19 +17,21 @@ struct tm {
|
|||
const char *tm_zone;
|
||||
};
|
||||
|
||||
struct tm *gmtime_r(const int64_t *, struct tm *);
|
||||
struct tm *localtime_r(const int64_t *, struct tm *);
|
||||
int64_t timegm(struct tm *);
|
||||
int64_t mktime(struct tm *);
|
||||
int64_t timelocal(struct tm *);
|
||||
int64_t timeoff(struct tm *, long);
|
||||
char *strptime(const char *, const char *, struct tm *);
|
||||
size_t strftime(char *, size_t, const char *, const struct tm *)
|
||||
strftimeesque(3);
|
||||
char *asctime(const struct tm *);
|
||||
char *asctime_r(const struct tm *, char[hasatleast 64]);
|
||||
char *iso8601(char[hasatleast 20], struct tm *);
|
||||
char *strptime(const char *, const char *, struct tm *);
|
||||
int64_t mktime(struct tm *);
|
||||
int64_t timegm(struct tm *);
|
||||
int64_t timelocal(struct tm *);
|
||||
int64_t timeoff(struct tm *, long);
|
||||
size_t strftime(char *, size_t, const char *, const struct tm *)
|
||||
strftimeesque(3);
|
||||
size_t wcsftime(wchar_t *, size_t, const wchar_t *, const struct tm *);
|
||||
struct tm *gmtime(const int64_t *);
|
||||
struct tm *gmtime_r(const int64_t *, struct tm *);
|
||||
struct tm *localtime(const int64_t *);
|
||||
struct tm *localtime_r(const int64_t *, struct tm *);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
|
@ -8,6 +8,8 @@ struct utimbuf {
|
|||
int64_t modtime; /* modified time */
|
||||
};
|
||||
|
||||
int utime(const char *, const struct utimbuf *);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_TIME_STRUCT_UTIMBUF_H_ */
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_TIME_TIME_H_
|
||||
#define COSMOPOLITAN_LIBC_TIME_TIME_H_
|
||||
#include "libc/time/struct/tm.h"
|
||||
#include "libc/time/struct/utimbuf.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
|
@ -20,8 +18,6 @@ char *ctime(const int64_t *);
|
|||
char *ctime_r(const int64_t *, char[hasatleast 64]);
|
||||
double difftime(int64_t, int64_t) dontthrow pureconst;
|
||||
extern long double (*nowl)(void);
|
||||
int usleep(uint32_t);
|
||||
int utime(const char *, const struct utimbuf *);
|
||||
int64_t clock(void);
|
||||
int64_t posix2time(int64_t) pureconst;
|
||||
int64_t time(int64_t *);
|
||||
|
@ -29,8 +25,6 @@ int64_t time2posix(int64_t) pureconst;
|
|||
long double ConvertTicksToNanos(uint64_t);
|
||||
long double dsleep(long double);
|
||||
long double dtime(int);
|
||||
struct tm *gmtime(const int64_t *);
|
||||
struct tm *localtime(const int64_t *);
|
||||
unsigned alarm(unsigned);
|
||||
unsigned sleep(unsigned);
|
||||
void RefreshTime(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue