Commit Graph

12 Commits

Author SHA1 Message Date
Pavel Yaskevich
5a164c5f8a [Frontend] Switch from YAML to .strings based localization 2022-08-22 10:23:06 -07:00
Ben Barham
e9a80debd4 Prevent superfluous diagnostic-database execution
Add dependencies and output to the diagnostic-database target so that
it's not re-run every time swift-frontend is compiled.
2020-11-12 11:25:38 +10:00
Cassie Jones
20995ae0bb [build] Add FILES_MATCHING to CMakeLists.txt
The bare "PATTERN" argument by default does nothing, you need either
"EXCLUDE" or "FILES_MATCHING" to make it do something. This likely
wasn't previously a problem because clang is only installing headers,
but it should be fixed for robustness.
2020-10-05 15:07:02 -04:00
Cassie Jones
d74cad6960 [Localization] Install only *.db and *.yaml files (#34139)
This prevents us from picking up the .gitkeep file and any other stray
files that might end up in there.
2020-10-02 10:37:35 -07:00
Pavel Yaskevich
b51b1f121e [Localization] Establish dependency between def-to-yaml converter and diagnostic-database 2020-09-03 16:33:23 -07:00
HassanElDesouky
354440402f [Localization] Create swift-def-to-yaml-converter tool 2020-09-03 16:33:23 -07:00
Eric Miotto
a4bea90c91 [build] invoke swift-serialize-diagnostics for host architecture
As a result of #33346 we are relying on the tool for the current target -- this will
work for the host architecture but will fail when crosscompiling.

Addresses rdar://66800239
2020-08-11 13:12:04 -07:00
Pavel Yaskevich
aa229c2610 [Localization] Fully qualify swift-serialize-diagnostics tool 2020-08-06 15:33:14 -07:00
Pavel Yaskevich
0103b79579 [Localization] Adjust cmake to include serialized diagnostics in toolchain
Building of the diagnostic database to be done in three steps:

- Copy YAMLs from <source>/localization/diagnostics to <build>/share/swift/diagnostics
- Serialize English into <build>/share/swift/diagnostics
- Install everything (YAML and `.db`) from <build>/share/swift/diagnostics
  to share/swift/diagnostics in toolchain
2020-08-05 17:05:13 -07:00
Pavel Yaskevich
8d8da1b087 [Localization] Adjust types associated with reader/writer info
Add more usages of `offset_type` where appropriate and change
buffer type to `const unsigned char *`.
2020-08-05 15:52:46 -07:00
HassanElDesouky
a84cf7f9e8 [Locale] Serialize YAML to an OnDiskHashTable format and create a tool for serialization 2020-08-05 15:52:46 -07:00
Pavel Yaskevich
8461047ae6 [Build] Move diagnostic translations from include to dedicated localization/ directory 2020-07-13 22:23:52 -07:00