Mercurial > hg > orthanc-stone
diff Applications/StoneWebViewer/WebAssembly/ParseWebAssemblyExports.py @ 1632:9a4c09361f3e
removed annoying warning
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 10 Nov 2020 10:10:05 +0100 |
parents | f9e3a9c21c0f |
children | 9ac2a65d4172 |
line wrap: on
line diff
--- a/Applications/StoneWebViewer/WebAssembly/ParseWebAssemblyExports.py Mon Nov 09 18:49:08 2020 +0100 +++ b/Applications/StoneWebViewer/WebAssembly/ParseWebAssemblyExports.py Tue Nov 10 10:10:05 2020 +0100 @@ -59,7 +59,8 @@ # PARSE_SKIP_FUNCTION_BODIES prevents clang from failing because of # undefined types, which prevents compilation of functions tu = index.parse(args.source, - [ '-DEMSCRIPTEN_KEEPALIVE=__attribute__((annotate("WebAssembly")))' ], + [ '-DEMSCRIPTEN_KEEPALIVE=__attribute__((annotate("WebAssembly")))', + '-DSTONE_WEB_VIEWER_EXPORT=__attribute__((annotate("WebAssembly")))'], options = clang.cindex.TranslationUnit.PARSE_SKIP_FUNCTION_BODIES)