Repository navigation
Fix executable names for web samples. - #10096
Merged
Merged
Conversation
* Use `_` instead of `-` in names, as they will appear in C++ identifiers (a more general name sanitization might be better than this bandaid) * Update static library name from 'llvm' to 'llvm_cpu' ``` [2022-08-13T00:19:29Z] In file included from /usr/src/github/iree/experimental/web/sample_static/device_sync.c:9: [2022-08-13T00:19:29Z] /usr/src/github/iree/build-emscripten/experimental/web/sample_static/mnist_static.h:11:67: error: extra tokens at end of #ifndef directive [-Werror,-Wextra-tokens] [2022-08-13T00:19:29Z] #ifndef IREE_GENERATED_STATIC_EXECUTABLE_LIBRARY_MNIST_LINKED_LLVM-CPU_ [2022-08-13T00:19:29Z] ^ [2022-08-13T00:19:29Z] // [2022-08-13T00:19:29Z] /usr/src/github/iree/build-emscripten/experimental/web/sample_static/mnist_static.h:12:67: error: ISO C99 requires whitespace after the macro name [-Werror,-Wc99-extensions] [2022-08-13T00:19:29Z] #define IREE_GENERATED_STATIC_EXECUTABLE_LIBRARY_MNIST_LINKED_LLVM-CPU_ [2022-08-13T00:19:29Z] ^ [2022-08-13T00:19:29Z] /usr/src/github/iree/build-emscripten/experimental/web/sample_static/mnist_static.h:21:18: error: expected ';' after top level declarator [2022-08-13T00:19:29Z] mnist_linked_llvm-cpu_library_query( [2022-08-13T00:19:29Z] ^ [2022-08-13T00:19:29Z] ; [2022-08-13T00:19:29Z] /usr/src/github/iree/experimental/web/sample_static/device_sync.c:18:7: error: use of undeclared identifier 'mnist_linked_llvm_library_query' [2022-08-13T00:19:29Z] mnist_linked_llvm_library_query, [2022-08-13T00:19:29Z] ^ // ```
benvanik
approved these changes
Aug 15, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes https://buildkite.com/iree/iree-samples/builds/442
_instead of-in names, as they will appear in C++ identifiers (a more general name sanitization might be better than this bandaid)