Was reverted in r363379 due to build breakage.
Thanks to Nico Weber for reverting the original and suggesting the
fix.
Please see https://reviews.llvm.org/D61697
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@363502
91177308-0d34-0410-b5e6-
96231b3b80d8
//
// ^ -ccc-install-dir passed to unbreak tests on *BSD where
// getMainExecutable() relies on real argv[0] being passed
+//
+// UNSUPPORTED: enable_shared
#include <mock_vector>
vector v;
if os.path.exists('/etc/gentoo-release'):
config.available_features.add('gentoo')
+
+if config.enable_shared:
+ config.available_features.add("enable_shared")