Skip to content

Define _ALL_SOURCE when generating predefined-macros.txt. #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ LIBC_TOP_HALF_MUSL_SOURCES = \
$(wildcard $(LIBC_TOP_HALF_MUSL_SRC_DIR)/search/*.c) \
$(wildcard $(LIBC_TOP_HALF_MUSL_SRC_DIR)/multibyte/*.c) \
$(wildcard $(LIBC_TOP_HALF_MUSL_SRC_DIR)/regex/*.c) \
$(wildcard $(LIBC_TOP_HALF_MUSL_SRC_DIR)/temp/*.c) \
$(wildcard $(LIBC_TOP_HALF_MUSL_SRC_DIR)/prng/*.c) \
$(wildcard $(LIBC_TOP_HALF_MUSL_SRC_DIR)/conf/*.c) \
$(wildcard $(LIBC_TOP_HALF_MUSL_SRC_DIR)/ctype/*.c) \
Expand Down Expand Up @@ -368,6 +367,10 @@ $(SYSROOT_INC):
"$(SYSROOT_INC)/spawn.h" \
"$(SYSROOT_INC)/ucontext.h" \
"$(SYSROOT_INC)/sys/ucontext.h"
ifeq ($(THREAD_MODEL), single)
$(RM) "$(SYSROOT_INC)/aio.h" \
"$(SYSROOT_INC)/pthread.h"
endif

ifeq ($(BUILD_LIBC_BOTTOM_HALF),no)
override CRT_SOURCES = $(BASICS_CRT_SOURCES)
Expand Down Expand Up @@ -434,6 +437,7 @@ finish: $(SYSROOT_INC) libc
# TODO: Filter out __FLT16_* for now, as not all versions of clang have these.
"$(WASM_CC)" $(WASM_CFLAGS) "$(SYSROOT_SHARE)/include-all.c" \
-E -dM -Wno-\#warnings \
-D_ALL_SOURCE \
-U__llvm__ \
-U__clang__ \
-U__clang_major__ \
Expand Down
13 changes: 0 additions & 13 deletions expected/wasm32-wasi/defined-symbols.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ _IO_putc_unlocked
__EINVAL
__ENOMEM
___environ
__aio_close
__asctime_r
__assert_fail
__c_dot_utf8
Expand Down Expand Up @@ -142,7 +141,6 @@ __libc
__loc_is_allocated
__localtime_r
__memrchr
__mkostemps
__mo_lookup
__month_to_secs
__newlocale
Expand All @@ -165,7 +163,6 @@ __progname
__progname_full
__putenv
__rand48_step
__randname
__rem_pio2
__rem_pio2_large
__rem_pio2f
Expand Down Expand Up @@ -744,16 +741,6 @@ memrchr
memset
mkdir
mkdirat
mkdtemp
mkostemp
mkostemp64
mkostemps
mkostemps64
mkstemp
mkstemp64
mkstemps
mkstemps64
mktemp
mktime
modf
modff
Expand Down
2 changes: 0 additions & 2 deletions expected/wasm32-wasi/include-all.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
#include <__typedef_suseconds_t.h>
#include <__typedef_time_t.h>
#include <__typedef_uid_t.h>
#include <aio.h>
#include <alloca.h>
#include <ar.h>
#include <arpa/ftp.h>
Expand Down Expand Up @@ -118,7 +117,6 @@
#include <netpacket/packet.h>
#include <nl_types.h>
#include <poll.h>
#include <pthread.h>
#include <regex.h>
#include <sched.h>
#include <search.h>
Expand Down
Loading