From 0efb81c486cdc1e5b2466083f1cb06e8857e10b1 Mon Sep 17 00:00:00 2001 From: Domenico Iezzi Date: Wed, 16 Oct 2024 15:49:45 +0200 Subject: [PATCH] Reorder CFLAGS, add dwarf 3 symbols for windows build --- build-toolchain | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build-toolchain b/build-toolchain index 635f54f..783e83b 100755 --- a/build-toolchain +++ b/build-toolchain @@ -303,7 +303,7 @@ if [[ "$task_string" == "build-gcc-stage2" || "$task_string" == "build-all" || " CFLAGS="$CFLAGS" \ CXXFLAGS="$CXXFLAGS" \ CFLAGS_FOR_TARGET='-g -gdwarf-3 -O2 -ffast-math -ffunction-sections -mfast-div -fno-common -mno-eabi-bitfield-limit' \ - CPPFLAGS_FOR_TARGET='-g -O2 -gdwarf-3 -ffast-math -ffunction-sections -mfast-div -fno-common -mno-eabi-bitfield-limit' \ + CPPFLAGS_FOR_TARGET='-g -gdwarf-3 -O2 -ffast-math -ffunction-sections -mfast-div -fno-common -mno-eabi-bitfield-limit' \ --target=tricore-elf \ --enable-lib32 \ --disable-lib64 \ @@ -465,8 +465,8 @@ if [[ "$task_string" == "build-gcc-stage2-win" || "$task_string" == "build-all" LDFLAGS="$LDFLAGS" \ CFLAGS="$CFLAGS" \ CXXFLAGS="$CXXFLAGS" \ - CFLAGS_FOR_TARGET='-O2 -ffast-math -ffunction-sections -mfast-div -fno-common -mno-eabi-bitfield-limit' \ - CPPFLAGS_FOR_TARGET='-O2 -ffast-math -ffunction-sections -mfast-div -fno-common -mno-eabi-bitfield-limit' \ + CFLAGS_FOR_TARGET='-g -gdwarf-3 -O2 -ffast-math -ffunction-sections -mfast-div -fno-common -mno-eabi-bitfield-limit' \ + CPPFLAGS_FOR_TARGET='-g -gdwarf-3 -O2 -ffast-math -ffunction-sections -mfast-div -fno-common -mno-eabi-bitfield-limit' \ --target=tricore-elf \ --host=x86_64-w64-mingw32 \ --enable-lib32 \