Sergey Larin
5c6d6ec27c
PCH: Clang: Update PCH usage flags to include original header
...
Add an additional include flag to PCH usage command line to fix programs
that rely on `compile_commands.json` file. Pass it to the preprocessor
directly to avoid compiler driver to change it to '-include-pch'.
When preprocessor is requested to preprocess a file, it tries to get
the original filename from '.pch' and uses that file for preprocessing.
CMake generates a '.pch' file from the '.hxx' file by passing an empty
'.cxx' source file to the compiler as a compilation unit and the header
file with the '-include' flag. After that, compiler puts compilation
unit filename in the '.pch' as the original filename.
However, CMake build system uses empty file as the source file and
passes the header file using '-include-pch' flag. As a result, Clang
uses the wrong file for preprocessing and produces the corrupted
preprocessed file.
Fixes : #20355
Signed-off-by: Sergey Larin <cerg2010cerg2010@mail.ru >
2020-02-24 10:53:39 -05:00
..
2020-01-31 09:28:07 -05:00
2020-02-04 08:26:40 -05:00
2016-06-20 09:59:31 -04:00
2016-06-20 09:59:31 -04:00
2016-09-05 09:45:13 -04:00
2020-01-31 09:34:06 -05:00
2017-04-27 13:29:28 -04:00
2017-04-27 13:29:28 -04:00
2020-01-31 09:34:06 -05:00
2019-02-25 08:24:28 -05:00
2019-02-25 08:24:28 -05:00
2019-02-25 08:24:28 -05:00
2019-07-16 14:15:13 -04:00
2017-01-10 14:12:46 -05:00
2016-08-12 10:40:51 -04:00
2018-04-03 14:34:57 -04:00
2019-10-15 21:13:51 +05:30
2019-07-26 14:17:07 -04:00
2016-08-12 10:40:51 -04:00
2016-08-12 10:40:51 -04:00
2019-10-15 21:13:51 +05:30
2016-08-12 10:40:51 -04:00
2018-04-03 14:34:57 -04:00
2016-09-27 15:14:44 -04:00
2019-10-15 21:13:51 +05:30
2019-10-15 21:13:51 +05:30
2018-04-18 07:41:42 -04:00
2019-10-28 11:52:31 -04:00
2018-04-18 07:41:42 -04:00
2018-04-18 07:41:42 -04:00
2019-09-28 15:56:46 +02:00
2019-09-28 15:56:53 +02:00
2019-10-09 09:18:33 -04:00
2018-04-18 07:41:42 -04:00
2018-04-18 07:41:42 -04:00
2019-09-28 15:56:46 +02:00
2019-09-28 15:56:53 +02:00
2018-04-18 07:41:44 -04:00
2018-04-18 07:41:42 -04:00
2018-04-18 07:41:42 -04:00
2018-04-18 07:41:42 -04:00
2019-09-28 15:56:46 +02:00
2019-09-28 15:56:53 +02:00
2019-11-02 14:10:09 +02:00
2018-04-18 07:41:42 -04:00
2018-04-18 07:41:42 -04:00
2018-04-18 07:41:42 -04:00
2018-06-06 17:22:41 +02:00
2018-04-18 07:41:42 -04:00
2018-04-18 07:41:42 -04:00
2018-04-18 07:41:42 -04:00
2018-04-18 07:41:42 -04:00
2018-04-18 07:41:42 -04:00
2018-04-18 07:41:44 -04:00
2018-04-18 07:41:42 -04:00
2018-04-18 07:41:42 -04:00
2019-07-15 07:45:04 -04:00
2019-07-15 07:45:04 -04:00
2016-07-06 10:13:31 -04:00
2016-09-27 15:14:44 -04:00
2016-09-27 15:14:44 -04:00
2016-09-27 15:14:44 -04:00
2016-09-27 15:14:44 -04:00
2017-04-27 13:29:28 -04:00
2017-04-27 13:29:28 -04:00
2016-09-27 15:14:44 -04:00
2016-09-27 15:14:44 -04:00
2016-09-27 15:14:44 -04:00
2016-09-27 15:14:44 -04:00
2016-09-27 15:14:44 -04:00
2017-04-27 13:29:28 -04:00
2017-04-27 13:29:28 -04:00
2016-09-27 15:14:44 -04:00
2016-09-27 15:14:44 -04:00
2016-09-27 15:14:44 -04:00
2016-09-27 15:14:44 -04:00
2016-09-27 15:14:44 -04:00
2016-09-27 15:14:44 -04:00
2017-04-27 13:29:28 -04:00
2017-04-27 13:29:28 -04:00
2016-09-27 15:14:44 -04:00
2016-09-27 15:14:44 -04:00
2016-09-27 15:14:44 -04:00
2016-09-27 15:14:44 -04:00
2016-09-27 15:14:44 -04:00
2017-04-27 13:29:28 -04:00
2017-04-27 13:29:28 -04:00
2016-09-27 15:14:44 -04:00
2016-09-27 15:14:44 -04:00
2019-02-19 06:50:22 -07:00
2016-06-02 09:51:43 -04:00
2018-12-19 19:41:27 +11:00
2017-03-16 06:04:29 -04:00
2016-06-02 09:51:43 -04:00
2019-12-13 16:35:38 +01:00
2020-02-10 10:32:37 -05:00
2018-10-26 09:27:29 -04:00
2017-09-20 10:52:29 +02:00
2018-11-11 17:34:09 +01:00
2018-12-19 19:41:27 +11:00
2018-06-06 17:22:41 +02:00
2018-06-06 17:22:41 +02:00
2020-02-04 07:25:24 -05:00
2019-03-29 12:38:12 -04:00
2016-09-27 15:14:44 -04:00
2018-10-03 13:12:21 -04:00
2017-08-25 14:24:24 -04:00
2018-10-26 09:26:47 -04:00
2016-09-05 09:45:13 -04:00
2017-05-17 11:26:11 -06:00
2016-07-06 10:13:31 -04:00
2016-09-27 15:14:44 -04:00
2016-05-17 13:36:29 -04:00
2019-02-04 09:03:35 -05:00
2019-03-05 09:42:41 -05:00
2019-02-04 09:03:35 -05:00
2016-06-02 09:51:43 -04:00
2018-06-01 09:21:06 +02:00
2016-07-28 00:41:13 +02:00
2018-12-19 19:41:27 +11:00
2016-09-27 15:14:44 -04:00
2018-12-19 19:41:27 +11:00
2017-04-17 17:34:52 +02:00
2019-07-15 07:45:04 -04:00
2019-07-15 07:45:04 -04:00
2019-07-15 07:45:04 -04:00
2018-10-26 09:25:51 -04:00
2017-09-20 14:44:30 -04:00
2018-11-11 17:34:09 +01:00
2018-10-26 09:27:29 -04:00
2016-08-02 10:09:52 -04:00
2018-12-19 19:41:27 +11:00
2019-08-09 12:53:05 -04:00
2019-08-09 12:53:05 -04:00
2018-10-26 09:26:47 -04:00
2016-06-06 08:58:20 -04:00
2016-06-06 08:58:20 -04:00
2016-06-06 08:58:20 -04:00
2016-09-27 15:14:44 -04:00
2019-05-14 15:26:46 -04:00
2019-02-04 09:03:35 -05:00
2019-02-04 09:03:35 -05:00
2019-02-04 09:03:35 -05:00
2018-12-19 19:41:27 +11:00
2019-02-18 17:09:26 -05:00
2018-12-19 19:41:27 +11:00
2019-02-04 09:03:35 -05:00
2019-02-04 09:03:35 -05:00
2019-02-04 09:03:35 -05:00
2019-12-21 18:25:54 -08:00
2020-01-31 14:37:34 -05:00
2017-10-25 07:36:10 -04:00
2020-02-24 10:53:39 -05:00
2016-06-02 09:51:43 -04:00
2018-04-02 10:08:10 -04:00
2020-02-24 10:53:39 -05:00
2019-08-09 10:18:54 -04:00
2020-01-31 14:37:34 -05:00
2020-01-20 13:31:45 -05:00
2019-01-30 14:59:23 -05:00
2019-01-30 14:59:23 -05:00
2019-04-19 12:56:49 -04:00
2018-08-07 08:32:31 -04:00
2019-12-11 02:40:46 +09:00
2020-01-27 16:02:26 -05:00
2016-07-06 10:10:10 -04:00
2016-07-06 10:10:10 -04:00
2019-08-02 13:37:39 -04:00
2017-05-20 20:02:51 +02:00
2017-05-20 20:02:51 +02:00
2020-01-16 10:32:25 -05:00
2016-07-06 10:10:10 -04:00
2016-07-06 10:10:10 -04:00
2016-11-09 16:19:07 -05:00
2016-09-27 15:14:44 -04:00
2020-01-31 14:37:34 -05:00
2018-07-08 00:06:37 +03:00
2018-07-08 00:06:37 +03:00
2020-01-31 14:37:34 -05:00
2018-07-08 00:06:37 +03:00
2018-07-08 00:06:37 +03:00
2020-01-31 14:37:34 -05:00
2018-07-08 00:06:37 +03:00
2018-07-08 00:06:37 +03:00
2020-01-31 14:37:34 -05:00
2018-07-08 00:06:37 +03:00
2018-07-08 00:06:37 +03:00