From 8f0030df2a1722bbf36383af95052ecbb3aec28b Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Sun, 8 Oct 2017 16:30:20 -0500 Subject: [PATCH] Throw exception if attempting to configure for multiple archs with MSVC. --- AMBuildScript | 3 +++ 1 file changed, 3 insertions(+) diff --git a/AMBuildScript b/AMBuildScript index d7d2f50..3516082 100644 --- a/AMBuildScript +++ b/AMBuildScript @@ -161,6 +161,9 @@ class MMSConfig(object): raise Exception('Unknown target architecture: {0}'.format(builder.target.arch)) cxx = builder.DetectCxx() + + if cxx.like('msvc') and len(self.archs) > 1: + raise Exception('Building multiple archs with MSVC is not currently supported') if cxx.behavior == 'gcc': cxx.defines += [