OSDN Git Service

Disable C++ exceptions in the Windows gn build
authorReid Kleckner <rnk@google.com>
Wed, 29 Nov 2017 18:45:53 +0000 (10:45 -0800)
committerReid Kleckner <rnk@google.com>
Wed, 29 Nov 2017 20:55:56 +0000 (20:55 +0000)
commitd19db3dc3fecb4a469b6e3f875a572f407ccb564
tree0cd517571e6273c08a09efb8120228aba974a902
parent536ffccd76883cc1419afa7551f6978c08492816
Disable C++ exceptions in the Windows gn build

This avoids unnecessary destructor cleanups in swiftshader code.  Posix
systems use -fno-exceptions, so this updates the MSVC gn args with the
equivalent, /EHs-c-.

I noticed this while investigating an unrelated issue.

Change-Id: Ic56e7560e7cb7617f8596b3ffda0444122425535
Reviewed-on: https://swiftshader-review.googlesource.com/14308
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Reid Kleckner <rnk@google.com>
BUILD.gn