Skip to content

Commit df59090

Browse files
committed
Remove --backup=numbered, to reduce clutter in the sysroot.
1 parent 1353fde commit df59090

3 files changed

Lines changed: 4 additions & 56 deletions

File tree

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,8 @@ $(SYSROOT_INC):
276276
# Install the include files.
277277
#
278278
mkdir -p "$(SYSROOT_INC)"
279-
cp -r --backup=numbered "$(BASICS_INC)" "$(SYSROOT)"
280-
cp -r --backup=numbered "$(LIBC_BOTTOM_HALF_HEADERS_PUBLIC)"/* "$(SYSROOT_INC)"
279+
cp -r "$(BASICS_INC)" "$(SYSROOT)"
280+
cp -r "$(LIBC_BOTTOM_HALF_HEADERS_PUBLIC)"/* "$(SYSROOT_INC)"
281281

282282
# Generate musl's bits/alltypes.h header.
283283
mkdir -p "$(SYSROOT_INC)/bits"
@@ -287,9 +287,9 @@ $(SYSROOT_INC):
287287
> "$(SYSROOT_INC)/bits/alltypes.h"
288288

289289
# Copy in the bulk of musl's public header files.
290-
cp -r --backup=numbered "$(LIBC_TOP_HALF_MUSL_INC)"/* "$(SYSROOT_INC)"
290+
cp -r "$(LIBC_TOP_HALF_MUSL_INC)"/* "$(SYSROOT_INC)"
291291
# Copy in the musl's "bits" header files.
292-
cp -r --backup=numbered "$(LIBC_TOP_HALF_MUSL_DIR)"/arch/generic/bits/* "$(SYSROOT_INC)/bits"
292+
cp -r "$(LIBC_TOP_HALF_MUSL_DIR)"/arch/generic/bits/* "$(SYSROOT_INC)/bits"
293293
cp -r "$(LIBC_TOP_HALF_MUSL_DIR)"/arch/wasm32/bits/* "$(SYSROOT_INC)/bits"
294294

295295
# Remove files that aren't headers or that aren't supported yet or that aren't relevant for wasm.

expected/wasm32-wasi/include-all.c

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,10 @@
7070
#include <cpio.h>
7171
#include <crypt.h>
7272
#include <ctype.h>
73-
#include <dirent.h.~1~>
7473
#include <dirent.h>
7574
#include <endian.h>
7675
#include <err.h>
77-
#include <errno.h.~1~>
78-
#include <errno.h.~2~>
7976
#include <errno.h>
80-
#include <fcntl.h.~1~>
8177
#include <fcntl.h>
8278
#include <features.h>
8379
#include <fenv.h>
@@ -109,7 +105,6 @@
109105
#include <netinet/icmp6.h>
110106
#include <netinet/if_ether.h>
111107
#include <netinet/igmp.h>
112-
#include <netinet/in.h.~1~>
113108
#include <netinet/in.h>
114109
#include <netinet/in_systm.h>
115110
#include <netinet/ip.h>
@@ -119,7 +114,6 @@
119114
#include <netinet/udp.h>
120115
#include <netpacket/packet.h>
121116
#include <nl_types.h>
122-
#include <poll.h.~1~>
123117
#include <poll.h>
124118
#include <pthread.h>
125119
#include <regex.h>
@@ -136,12 +130,8 @@
136130
#include <stdint.h>
137131
#include <stdio.h>
138132
#include <stdio_ext.h>
139-
#include <stdlib.h.~1~>
140-
#include <stdlib.h.~2~>
141133
#include <stdlib.h>
142134
#include <stdnoreturn.h>
143-
#include <string.h.~1~>
144-
#include <string.h.~2~>
145135
#include <string.h>
146136
#include <strings.h>
147137
#include <stropts.h>
@@ -150,43 +140,31 @@
150140
#include <sys/eventfd.h>
151141
#include <sys/fcntl.h>
152142
#include <sys/file.h>
153-
#include <sys/ioctl.h.~1~>
154143
#include <sys/ioctl.h>
155144
#include <sys/param.h>
156145
#include <sys/poll.h>
157146
#include <sys/random.h>
158147
#include <sys/reg.h>
159-
#include <sys/resource.h.~1~>
160148
#include <sys/resource.h>
161-
#include <sys/select.h.~1~>
162149
#include <sys/select.h>
163150
#include <sys/signal.h>
164151
#include <sys/signalfd.h>
165-
#include <sys/socket.h.~1~>
166152
#include <sys/socket.h>
167-
#include <sys/stat.h.~1~>
168-
#include <sys/stat.h.~2~>
169153
#include <sys/stat.h>
170154
#include <sys/stropts.h>
171155
#include <sys/syscall.h>
172156
#include <sys/sysinfo.h>
173157
#include <sys/sysmacros.h>
174158
#include <sys/termios.h>
175-
#include <sys/time.h.~1~>
176159
#include <sys/time.h>
177160
#include <sys/timeb.h>
178161
#include <sys/timerfd.h>
179-
#include <sys/times.h.~1~>
180162
#include <sys/times.h>
181163
#include <sys/timex.h>
182164
#include <sys/ttydefaults.h>
183-
#include <sys/types.h.~1~>
184-
#include <sys/types.h.~2~>
185165
#include <sys/types.h>
186166
#include <sys/ucontext.h>
187-
#include <sys/uio.h.~1~>
188167
#include <sys/uio.h>
189-
#include <sys/un.h.~1~>
190168
#include <sys/un.h>
191169
#include <sys/utsname.h>
192170
#include <sys/xattr.h>
@@ -196,18 +174,14 @@
196174
#include <termios.h>
197175
#include <tgmath.h>
198176
#include <threads.h>
199-
#include <time.h.~1~>
200-
#include <time.h.~2~>
201177
#include <time.h>
202178
#include <uchar.h>
203179
#include <ucontext.h>
204180
#include <ulimit.h>
205-
#include <unistd.h.~1~>
206181
#include <unistd.h>
207182
#include <utime.h>
208183
#include <values.h>
209184
#include <wasi.h>
210-
#include <wchar.h.~1~>
211185
#include <wchar.h>
212186
#include <wctype.h>
213187
#include <wordexp.h>

expected/wasm32-wasi/predefined-macros.txt

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3732,25 +3732,6 @@
37323732
#define __wasilibc___typedef_sa_family_t_h
37333733
#define __wasilibc___typedef_sigset_t_h
37343734
#define __wasilibc___typedef_socklen_t_h
3735-
#define __wasilibc_dirent_h
3736-
#define __wasilibc_errno_h
3737-
#define __wasilibc_fcntl_h
3738-
#define __wasilibc_netinet_in_h
3739-
#define __wasilibc_poll_h
3740-
#define __wasilibc_stdlib_h
3741-
#define __wasilibc_string_h
3742-
#define __wasilibc_sys_ioctl_h
3743-
#define __wasilibc_sys_resource_h
3744-
#define __wasilibc_sys_select_h
3745-
#define __wasilibc_sys_socket_h
3746-
#define __wasilibc_sys_stat_h
3747-
#define __wasilibc_sys_time_h
3748-
#define __wasilibc_sys_times_h
3749-
#define __wasilibc_sys_types_h
3750-
#define __wasilibc_sys_uio_h
3751-
#define __wasilibc_sys_un_h
3752-
#define __wasilibc_time_h
3753-
#define __wasilibc_unistd_h
37543735
#define __wasm 1
37553736
#define __wasm32 1
37563737
#define __wasm32__ 1
@@ -3772,13 +3753,6 @@
37723753
#define __wasm_basics___typedef_suseconds_t_h
37733754
#define __wasm_basics___typedef_time_t_h
37743755
#define __wasm_basics___typedef_uid_t_h
3775-
#define __wasm_basics_errno_h
3776-
#define __wasm_basics_stdlib_h
3777-
#define __wasm_basics_string_h
3778-
#define __wasm_basics_sys_stat_h
3779-
#define __wasm_basics_sys_types_h
3780-
#define __wasm_basics_time_h
3781-
#define __wasm_basics_wchar_h
37823756
#define _tolower(a) ((a)|0x20)
37833757
#define _toupper(a) ((a)&0x5f)
37843758
#define acos(x) __tg_real_complex(acos, (x))

0 commit comments

Comments
 (0)