From f228839db4d048f7c9baeb78f4f39cb8c6446be4 Mon Sep 17 00:00:00 2001 From: Bruno Rosa Date: Fri, 12 May 2017 19:40:07 -0300 Subject: [PATCH] Add -fexception to ppc64le OPT flag This enables C++ code that interoperate with CPython to deal with exceptions properly on ppc64le systems. PyTorch/Torch is an example of a project that explicits this issue. --- configure | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure b/configure index 4c0435e98d249f..9469a0611b059c 100755 --- a/configure +++ b/configure @@ -6017,6 +6017,10 @@ then SCO_SV*) OPT="$OPT -m486 -DSCO5" ;; esac + case $(uname -m) in + ppc64le) OPT="$OPT -fexceptions" + ;; + esac ;; *)