about summary refs log tree commit diff
path: root/src/libmain
diff options
context:
space:
mode:
authorDavid McFarland <davidm@hb-studios.com>2017-04-21T14·28-0300
committerDavid McFarland <davidm@hb-studios.com>2017-04-21T14·28-0300
commit804ac524891ead6aa70e27c093686b71391ea232 (patch)
treeb046be4ff1c5a88d4b404bea68bf01aaf28699a9 /src/libmain
parentd35231ec6017d72492a23b882b9275a60e1737a6 (diff)
add helper function to set 'interruptThrown'
this fixes a linker failure on cygwin 64 due to some bad
interaction between tls and shared libraries.

see: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64697
Diffstat (limited to 'src/libmain')
-rw-r--r--src/libmain/shared.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmain/shared.cc b/src/libmain/shared.cc
index 4747b9bf9b4c..d6c1c0c9cb49 100644
--- a/src/libmain/shared.cc
+++ b/src/libmain/shared.cc
@@ -259,7 +259,7 @@ int handleExceptions(const string & programName, std::function<void()> fun)
                condition is discharged before we reach printMsg()
                below, since otherwise it will throw an (uncaught)
                exception. */
-            interruptThrown = true;
+            setInterruptThrown();
             throw;
         }
     } catch (Exit & e) {