diff --git a/bazel/test_external/BUILD b/bazel/test_external/BUILD index 77e2ee8d01..73568cf388 100644 --- a/bazel/test_external/BUILD +++ b/bazel/test_external/BUILD @@ -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", ) + diff --git a/bazel/test_external/hello-world.cc b/bazel/test_external/hello-world.cc index 94b08bfb7f..ee72c53171 100644 --- a/bazel/test_external/hello-world.cc +++ b/bazel/test_external/hello-world.cc @@ -1,21 +1,5 @@ #include -#ifdef __EMSCRIPTEN__ -#include -#include -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;