Skip to content

Commit 7d53b20

Browse files
author
Jin Huang
committed
Remove some unwanted changes
1 parent b892f7d commit 7d53b20

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

bazel/test_external/BUILD

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ load("@emsdk//emscripten_toolchain:wasm_rules.bzl", "wasm_cc_binary")
33
cc_binary(
44
name = "hello-world",
55
srcs = ["hello-world.cc"],
6-
linkopts = ["--bind"],
76
)
87

98
wasm_cc_binary(

bazel/test_external/hello-world.cc

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,5 @@
11
#include <iostream>
22

3-
#ifdef __EMSCRIPTEN__
4-
#include <emscripten.h>
5-
#include <emscripten/bind.h>
6-
using namespace emscripten;
7-
#endif
8-
9-
void sayHello() {
10-
std::cout << "hello" << std::endl;
11-
}
12-
13-
#ifdef __EMSCRIPTEN__
14-
EMSCRIPTEN_BINDINGS(hello) {
15-
function("sayHello", &sayHello);
16-
}
17-
#endif
18-
193
int main(int argc, char** argv) {
204
std::cout << "hello world!" << std::endl;
215
return 0;

0 commit comments

Comments
 (0)