Skip to content

Commit 7690118

Browse files
author
Your Name
committed
Enable more debug logging for Cygwin
1 parent 1ebc50b commit 7690118

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/scripts/toolchain/build-cygwin.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ if [[ "$RUN_CONFIG" = 1 ]] || [[ ! -f "$CYGWIN_BUILD_PATH/Makefile" ]]; then
1818
--enable-debug \
1919
--enable-debugging \
2020
--disable-lto"
21+
CFLAGS="$CFLAGS -DDEBUG"
22+
CXXFLAGS="$CXXFLAGS -DDEBUG"
23+
CFLAGS_FOR_TARGET="$CFLAGS_FOR_TARGET -DDEBUG"
24+
CXXFLAGS_FOR_TARGET="$CXXFLAGS_FOR_TARGET -DDEBUG"
2125
fi
2226

2327
(cd $CYGWIN_SOURCE_PATH/winsup && ./autogen.sh)
@@ -27,7 +31,10 @@ if [[ "$RUN_CONFIG" = 1 ]] || [[ ! -f "$CYGWIN_BUILD_PATH/Makefile" ]]; then
2731

2832
# ADDED: --disable-doc
2933
# ADDED: --disable-dumper
30-
CXXFLAGS_FOR_TARGET="-Wno-error -Wno-narrowing" \
34+
CFLAGS="$CFLAGS" \
35+
CXXFLAGS="$CXXFLAGS" \
36+
CFLAGS_FOR_TARGET="$CFLAGS_FOR_TARGET" \
37+
CXXFLAGS_FOR_TARGET="$CXXFLAGS_FOR_TARGET -Wno-error -Wno-narrowing" \
3138
$CYGWIN_SOURCE_PATH/configure \
3239
--prefix=$TOOLCHAIN_PATH \
3340
--build=$HOST \

0 commit comments

Comments
 (0)