diff options
author | Kyle Schwarz <zeranoe@gmail.com> | 2020-07-28 22:51:57 -0400 |
---|---|---|
committer | Kyle Schwarz <zeranoe@gmail.com> | 2020-07-28 22:51:57 -0400 |
commit | 0d4b98a1ca8ab52f45ce162ff64cd33f7c3f250f (patch) | |
tree | 55f83b3e079b864a8f627e4007b3e445f79d9b68 | |
parent | 1a16e4f05b9cb8708e478aff4f1ab3afc27cde7a (diff) |
Use dwarf2 for unwinding on i686
-rwxr-xr-x | mingw-w64-build | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mingw-w64-build b/mingw-w64-build index b1ded35..dc7a84f 100755 --- a/mingw-w64-build +++ b/mingw-w64-build @@ -121,6 +121,11 @@ build_toolchain() local prefix="$wd/$host" export PATH="$prefix/bin:$PATH" + i686_dwarf2="" + if [[ "$1" = "i686" ]]; then + i686_dwarf2="--disable-sjlj-exceptions --with-dwarf2" + fi + rm -fr "$prefix" clean_build "$bld/binutils" @@ -149,7 +154,7 @@ build_toolchain() clean_build "$bld/gcc" echo "configuring gcc" >&3 "../../src/gcc-$v_gcc/configure" --target="$host" --disable-shared \ - --enable-static --disable-multilib --prefix="$prefix" \ + --enable-static --disable-multilib --prefix="$prefix" $i686_dwarf2 \ --enable-languages=c,c++ --disable-nls $enable_threads || error_exit echo "running 'make-gcc' for gcc" >&3 make -j $cpus all-gcc || error_exit |