Adrian McCarthy
e4b26fc7a7
Get default -fms-compatibility-version from cl.exe's version
...
-fms-compatibility-version was defaulting to 18 (VS 2013), which is a pain if your environment is pointing to version 19 (VS 2015) libraries.
If cl.exe can be found, this patch uses its version number as the default instead. It re-uses the existing code to find the Visual Studio binaries folder and WinAPI methods to check its version. You can still explicitly specify a compatibility version on the command line. If you don't have cl.exe, this should be a no-op and you'll get the old default of 18.
This affected the tests, which assumed that if you didn't specific a version, that it would default to 18, but this won't be true for all machines. So a couple test cases had to be eliminated and a couple others had to be tweaked to allow for various outputs.
Addresses: https://llvm.org/bugs/show_bug.cgi?id=27215
Differential Revision: http://reviews.llvm.org/D20136
llvm-svn: 269515
2016-05-13 23:20:11 +00:00
..
2016-05-08 07:59:56 +00:00
2016-02-11 18:09:31 +00:00
2015-11-13 23:07:31 +00:00
2016-04-12 21:42:15 +00:00
2016-05-05 17:03:41 +00:00
2016-02-12 07:48:28 +00:00
2015-10-30 16:30:27 +00:00
2016-01-12 23:47:59 +00:00
2016-04-02 05:29:00 +00:00
2016-01-27 22:14:02 +00:00
2016-03-03 13:52:22 +00:00
2015-09-26 11:17:32 +00:00
2016-03-21 17:29:51 +00:00
2016-03-03 13:52:22 +00:00
2015-07-21 01:41:08 +00:00
2015-08-26 19:00:11 +00:00
2015-10-28 10:10:03 +00:00
2015-07-07 06:42:05 +00:00
2015-06-29 09:30:19 +00:00
2015-12-11 06:20:59 +00:00
2016-01-06 07:42:18 +00:00
2016-01-12 19:40:55 +00:00
2015-10-13 16:22:51 +00:00
2016-04-19 20:31:19 +00:00
2015-07-22 15:32:36 +00:00
2015-06-19 12:19:07 +00:00
2016-04-26 20:40:23 +00:00
2016-04-25 21:15:49 +00:00
2016-04-25 21:15:49 +00:00
2016-04-26 13:54:29 +00:00
2016-04-26 13:54:29 +00:00
2015-11-16 14:05:48 +00:00
2015-06-23 20:42:09 +00:00
2016-03-14 14:34:10 +00:00
2016-02-29 01:40:30 +00:00
2016-01-25 21:14:52 +00:00
2015-07-15 19:42:18 +00:00
2015-07-15 20:04:18 +00:00
2016-04-15 01:12:32 +00:00
2016-05-13 23:20:11 +00:00
2015-07-15 20:04:18 +00:00
2016-03-04 21:59:42 +00:00
2016-04-12 19:04:37 +00:00
2016-03-23 18:46:57 +00:00
2016-03-04 21:59:42 +00:00
2016-04-22 00:38:09 +00:00
2015-07-29 18:39:14 +00:00
2016-04-28 17:09:37 +00:00
2015-07-15 20:04:18 +00:00
2015-07-15 20:04:18 +00:00
2015-07-15 19:42:18 +00:00
2016-03-02 20:59:36 +00:00
2015-02-06 13:02:39 +00:00
2015-10-08 04:24:12 +00:00
2015-07-17 12:57:30 +00:00
2016-04-06 15:37:06 +00:00
2016-04-06 15:37:06 +00:00
2015-07-26 04:09:41 +00:00
2015-03-25 20:17:20 +00:00
2015-07-26 04:59:52 +00:00
2015-12-02 03:13:50 +00:00
2015-08-05 23:49:44 +00:00
2016-01-14 21:41:27 +00:00
2016-01-12 22:23:04 +00:00
2016-01-25 22:52:31 +00:00
2015-12-16 18:51:59 +00:00
2016-04-19 02:27:11 +00:00
2016-04-19 18:52:28 +00:00
2016-04-19 02:27:07 +00:00
2016-01-14 21:41:31 +00:00
2015-11-24 02:45:55 +00:00
2016-04-19 02:27:07 +00:00
2015-07-26 04:36:39 +00:00
2015-06-23 20:42:09 +00:00
2016-04-13 17:08:51 +00:00
2016-03-14 14:34:10 +00:00
2015-10-02 15:10:33 +00:00
2016-03-31 02:45:46 +00:00
2016-01-16 08:35:53 +00:00
2016-03-14 14:34:10 +00:00
2016-03-14 14:34:10 +00:00
2015-07-15 18:55:39 +00:00
2016-02-15 16:38:10 +00:00
2015-06-23 20:42:09 +00:00
2015-11-02 21:14:48 +00:00
2015-03-02 22:42:58 +00:00
2015-10-08 04:24:12 +00:00
2016-01-07 22:09:47 +00:00
2015-10-12 20:21:08 +00:00
2015-03-02 22:42:58 +00:00
2015-12-27 10:01:44 +00:00
2015-07-15 18:55:39 +00:00
2016-02-07 06:03:38 +00:00
2015-11-09 12:40:41 +00:00
2015-12-16 19:52:05 +00:00
2016-05-11 16:26:03 +00:00
2016-01-16 03:44:52 +00:00
2015-07-26 04:36:39 +00:00
2016-04-21 21:32:04 +00:00
2015-04-09 15:03:23 +00:00
2015-10-18 13:32:20 +00:00
2016-01-07 09:03:42 +00:00
2015-09-23 13:55:40 +00:00
2015-01-31 23:25:54 +00:00
2016-02-26 05:07:00 +00:00
2015-12-27 10:36:44 +00:00
2016-04-12 21:11:46 +00:00
2016-03-14 14:34:04 +00:00
2015-09-03 19:11:42 +00:00
2016-04-18 21:30:17 +00:00
2016-05-04 20:21:47 +00:00
2016-05-12 16:51:36 +00:00
2015-05-22 20:44:03 +00:00
2016-03-09 05:18:16 +00:00
2015-03-17 22:13:05 +00:00
2016-01-07 01:23:19 +00:00
2016-02-12 07:48:28 +00:00
2015-01-30 18:22:23 +00:00
2015-12-21 10:44:36 +00:00
2016-05-11 16:11:22 +00:00
2015-11-02 21:14:48 +00:00
2016-04-30 05:27:17 +00:00
2015-12-21 22:09:34 +00:00
2016-01-05 18:27:06 +00:00
2015-10-08 04:24:12 +00:00
2015-10-30 16:30:36 +00:00
2015-06-25 23:21:11 +00:00
2015-06-04 17:56:32 +00:00
2016-03-28 21:02:54 +00:00
2016-03-28 21:02:54 +00:00
2016-04-18 23:12:59 +00:00
2015-11-10 00:40:29 +00:00
2016-05-08 07:59:56 +00:00
2015-08-31 21:48:52 +00:00
2015-06-24 19:30:36 +00:00
2016-01-25 19:46:40 +00:00
2015-02-04 18:34:26 +00:00
2015-04-11 00:10:44 +00:00
2016-04-21 10:16:48 +00:00
2016-01-03 15:55:40 +00:00
2015-12-16 19:09:51 +00:00
2016-01-03 15:55:40 +00:00
2015-10-05 12:24:30 +00:00
2015-10-05 12:24:30 +00:00
2016-02-12 07:48:28 +00:00
2015-06-16 13:54:13 +00:00
2016-02-12 07:48:28 +00:00
2016-01-14 13:01:48 +00:00
2016-02-12 07:48:28 +00:00
2015-06-16 13:54:13 +00:00
2015-12-16 19:09:51 +00:00
2015-02-03 19:28:37 +00:00
2015-09-11 03:58:07 +00:00
2015-06-16 00:20:23 +00:00
2015-06-11 14:53:41 +00:00
2015-11-12 22:25:38 +00:00
2015-06-25 10:35:19 +00:00
2016-05-13 23:20:11 +00:00
2016-03-14 11:19:43 +00:00
2015-03-05 02:26:58 +00:00
2016-05-13 23:20:11 +00:00
2016-05-09 19:09:59 +00:00
2015-08-26 17:14:08 +00:00
2016-02-11 23:18:36 +00:00
2016-03-14 14:34:04 +00:00
2015-08-05 17:07:33 +00:00
2015-10-14 12:25:43 +00:00
2015-11-24 16:07:21 +00:00
2016-04-20 01:02:18 +00:00
2015-01-30 18:25:59 +00:00
2016-03-14 11:19:43 +00:00
2016-02-07 21:32:17 +00:00
2015-03-03 17:15:38 +00:00
2016-04-02 05:29:00 +00:00
2015-03-02 19:11:53 +00:00
2015-11-10 00:40:29 +00:00
2016-02-24 21:49:28 +00:00
2015-03-19 12:00:22 +00:00
2016-01-13 01:19:02 +00:00
2015-07-10 18:25:54 +00:00
2015-07-10 14:11:38 +00:00
2015-07-06 23:59:45 +00:00
2015-12-14 19:22:35 +00:00
2015-04-15 01:16:18 +00:00
2016-01-06 10:03:58 +00:00
2015-01-30 18:25:48 +00:00
2015-10-14 12:25:43 +00:00
2016-03-01 01:20:15 +00:00
2016-03-01 01:20:15 +00:00
2015-10-14 12:25:43 +00:00
2015-12-16 17:25:27 +00:00
2015-10-14 12:25:43 +00:00
2016-02-29 15:08:56 +00:00
2016-04-20 00:33:06 +00:00
2016-04-20 00:33:06 +00:00
2015-09-11 18:55:09 +00:00
2015-07-26 04:59:52 +00:00
2015-09-11 18:55:09 +00:00
2015-10-16 15:07:56 +00:00
2016-04-21 21:32:04 +00:00
2016-04-21 21:32:04 +00:00
2016-04-19 17:43:54 +00:00
2015-09-09 13:36:00 +00:00
2015-09-14 19:30:53 +00:00
2015-09-14 23:21:31 +00:00
2015-11-27 13:16:33 +00:00
2015-06-15 20:51:24 +00:00
2015-11-27 13:16:33 +00:00
2015-12-19 19:41:48 +00:00
2016-03-24 00:34:02 +00:00
2016-01-25 18:29:16 +00:00
2015-10-14 12:25:43 +00:00
2015-09-12 01:29:35 +00:00
2015-05-05 19:35:52 +00:00
2015-03-05 13:39:14 +00:00
2015-05-11 17:05:05 +00:00
2015-12-07 20:40:36 +00:00
2015-10-15 20:35:53 +00:00
2015-09-03 22:51:53 +00:00
2016-01-26 02:23:05 +00:00
2015-02-12 03:37:55 +00:00
2016-01-07 01:00:21 +00:00
2016-01-07 01:00:21 +00:00
2016-02-22 19:26:15 +00:00
2015-10-30 16:30:45 +00:00
2016-04-28 17:09:37 +00:00
2016-05-05 01:41:07 +00:00
2015-06-08 00:22:46 +00:00
2016-02-12 07:48:28 +00:00
2015-10-03 03:39:28 +00:00
2015-07-15 20:04:18 +00:00
2015-03-25 22:09:26 +00:00
2016-05-04 11:28:22 +00:00
2015-01-29 15:03:36 +00:00
2015-09-10 22:31:45 +00:00