mirror of
https://github.com/clearml/dropbear
synced 2025-02-11 23:23:30 +00:00
Just disable -Wundef for macos runners instead
The previous change to set TARGET_OS_EMBEDDED=0 didn't work for libtommath which doesn't include Dropbear headers
This commit is contained in:
parent
dacc10a8cf
commit
50a07a4889
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
@ -53,8 +53,9 @@ jobs:
|
|||||||
- name: macos 10.15
|
- name: macos 10.15
|
||||||
os: macos-10.15
|
os: macos-10.15
|
||||||
cc: clang
|
cc: clang
|
||||||
# OS X says daemon() and utmp are deprecated
|
# OS X says daemon() and utmp are deprecated.
|
||||||
extracflags: -Wno-deprecated-declarations
|
# OS X tests for undefined TARGET_OS_EMBEDDED in libc headers
|
||||||
|
extracflags: -Wno-deprecated-declarations -Wno-undef
|
||||||
runcheck: 'no'
|
runcheck: 'no'
|
||||||
apt: 'no'
|
apt: 'no'
|
||||||
# fails with:
|
# fails with:
|
||||||
@ -64,7 +65,7 @@ jobs:
|
|||||||
- name: macos 11
|
- name: macos 11
|
||||||
os: macos-11
|
os: macos-11
|
||||||
cc: clang
|
cc: clang
|
||||||
extracflags: -Wno-deprecated-declarations
|
extracflags: -Wno-deprecated-declarations -Wno-undef
|
||||||
runcheck: 'no'
|
runcheck: 'no'
|
||||||
apt: 'no'
|
apt: 'no'
|
||||||
ranlib: ranlib -no_warning_for_no_symbols
|
ranlib: ranlib -no_warning_for_no_symbols
|
||||||
|
10
sysoptions.h
10
sysoptions.h
@ -373,14 +373,4 @@
|
|||||||
#define DROPBEAR_MULTI 0
|
#define DROPBEAR_MULTI 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* MacOSX10.15.sdk headers don't work with -Wundef */
|
|
||||||
#ifdef __APPLE__
|
|
||||||
|
|
||||||
#ifndef TARGET_OS_EMBEDDED
|
|
||||||
#define TARGET_OS_EMBEDDED 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* __APPLE__ */
|
|
||||||
|
|
||||||
|
|
||||||
/* no include guard for this file */
|
/* no include guard for this file */
|
||||||
|
Loading…
Reference in New Issue
Block a user