Skip to content

Commit

Permalink
Changes made for cosmocc builds (#908)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahgamut authored Oct 9, 2023
1 parent 3b4dbc9 commit 211d5d9
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bin/cosmocc
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ fi
if [ "$1" = "--update" ]; then
cd $COSMO || exit
echo "building cosmo host toolchain..." >&2
make --silent -j toolchain MODE= || exit
make --silent -j toolchain MODE= ARCH=x86_64 || exit
echo "building cosmo target (MODE=$MODE) toolchain..." >&2
make --silent -j toolchain MODE="$MODE" || exit
echo "setting up your cosmos..." >&2
Expand Down
5 changes: 5 additions & 0 deletions libc/integral/c.inc
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,14 @@ typedef signed __int128 int128_t;
typedef unsigned __int128 uint128_t;
#endif
#endif /* _COSMO_SOURCE */

#ifndef __AXDX_T
#define __AXDX_T
typedef struct {
intptr_t ax, dx;
} axdx_t;
#endif


#ifndef __chibicc__
#define va_list __builtin_va_list
Expand Down
Empty file added libc/isystem/sys/cdefs.h
Empty file.
1 change: 1 addition & 0 deletions libc/isystem/sys/socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include "libc/sock/struct/sockaddr.h"
#include "libc/sysv/consts/af.h"
#include "libc/sysv/consts/limits.h"
#include "libc/sysv/consts/msg.h"
#include "libc/sysv/consts/pf.h"
#include "libc/sysv/consts/scm.h"
#include "libc/sysv/consts/shut.h"
Expand Down
4 changes: 4 additions & 0 deletions libc/isystem/ucontext.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#ifndef _UCONTEXT_H
#define _UCONTEXT_H
#include "libc/calls/ucontext.h"
#endif
5 changes: 5 additions & 0 deletions libc/isystem/unistd.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,9 @@
#include "third_party/getopt/long1.h"
#include "third_party/musl/crypt.h"
#include "third_party/musl/lockf.h"

#ifndef _CS_PATH
#define _CS_PATH 0
#endif

#endif /* _UNISTD_H */
1 change: 1 addition & 0 deletions libc/thread/semaphore.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#ifndef COSMOPOLITAN_LIBC_CALLS_SEMAPHORE_H_
#define COSMOPOLITAN_LIBC_CALLS_SEMAPHORE_H_
#include "libc/calls/struct/timespec.h"
#include "libc/stdbool.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_

Expand Down

0 comments on commit 211d5d9

Please sign in to comment.