Logo
Explore Help
Sign In
starred/qemu
1
0
Fork 0
You've already forked qemu
mirror of https://github.com/qemu/qemu.git synced 2026-10-11 15:47:19 +00:00
Code Issues 380 Packages Projects Releases Wiki Activity
Files
1086e95da1705087db542276dcbb8ba4d55cb97f
qemu/tests/qapi-schema/sub-sub-module.json

7 lines
161 B
JSON
Raw Normal View History

qapi: Fix code generation for sub-modules in other directories The #include directives to pull in sub-modules use file names relative to the main module. Works only when all modules are in the same directory, or the main module's output directory is in the compiler's include path. Use relative file names instead. The dummy variable we generate to avoid empty .o files has an invalid name for sub-modules in other directories. Fix that. Both messed up in commit 252dc3105fc "qapi: Generate separate .h, .c for each module". Escaped testing because tests/qapi-schema-test.json doesn't cover sub-modules in other directories, only tests/qapi-schema/include-relpath.json does, and we generate and compile C code only for the former, not the latter. Fold the latter into the former. This would have caught the mistakes fixed in this commit. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20190301154051.23317-5-armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
2019-03-01 16:40:48 +01:00
# *-*- Mode: Python -*-*
# Sub-module of sub-module include/sub-module.json of qapi-schema-test.json
{ 'enum': 'Status',
'data': [ 'good', 'bad', 'ugly' ] }
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.4 Page: 166ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API