Skip to content

Fix executable names for web samples. - #10096

Merged
ScottTodd merged 1 commit into
iree-org:mainfrom
ScottTodd:fix-executable-names
Aug 15, 2022
Merged

ScottTodd merged 1 commit into
iree-org:mainfrom
ScottTodd:fix-executable-names

Conversation

@ScottTodd

Copy link
Copy Markdown
Member

Fixes https://buildkite.com/iree/iree-samples/builds/442

  • 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]       ^                                                           //

* 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]       ^                                                           //
```
@ScottTodd
ScottTodd requested a review from benvanik as a code owner August 15, 2022 15:25
@ScottTodd
ScottTodd enabled auto-merge (squash) August 15, 2022 15:30
@ScottTodd
ScottTodd merged commit 64a7417 into iree-org:main Aug 15, 2022
@ScottTodd
ScottTodd deleted the fix-executable-names branch August 15, 2022 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants