Skip to content

Commit

Permalink
Remove some unwanted changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jin Huang committed Mar 30, 2021
1 parent b892f7d commit d496965
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
2 changes: 1 addition & 1 deletion bazel/test_external/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ load("@emsdk//emscripten_toolchain:wasm_rules.bzl", "wasm_cc_binary")
cc_binary(
name = "hello-world",
srcs = ["hello-world.cc"],
linkopts = ["--bind"],
)

wasm_cc_binary(
name = "hello-world-wasm",
cc_target = ":hello-world",
)

16 changes: 0 additions & 16 deletions bazel/test_external/hello-world.cc
Original file line number Diff line number Diff line change
@@ -1,21 +1,5 @@
#include <iostream>

#ifdef __EMSCRIPTEN__
#include <emscripten.h>
#include <emscripten/bind.h>
using namespace emscripten;
#endif

void sayHello() {
std::cout << "hello" << std::endl;
}

#ifdef __EMSCRIPTEN__
EMSCRIPTEN_BINDINGS(hello) {
function("sayHello", &sayHello);
}
#endif

int main(int argc, char** argv) {
std::cout << "hello world!" << std::endl;
return 0;
Expand Down

0 comments on commit d496965

Please sign in to comment.