Skip to content

Commit 5ea6244

Browse files
Fix lingering uses of --bind. (#18806)
These should all be `-lembind`.
1 parent fa339b7 commit 5ea6244

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

site/source/docs/porting/asyncify.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ returning a ``Promise`` to the return value, as demonstrated below.
294294
Build with
295295
::
296296

297-
emcc -O3 example.cpp --bind -sASYNCIFY
297+
emcc -O3 example.cpp -lembind -sASYNCIFY
298298

299299
Then invoke from JavaScript
300300

test/embind/build_benchmark

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/bin/bash
2-
../../emcc --minify 0 --bind --js-library=embind.benchmark.js -O2 --shell-file shell.html -o embind_benchmark.html embind_benchmark.cpp
2+
../../emcc --minify 0 -lembind --js-library=embind.benchmark.js -O2 --shell-file shell.html -o embind_benchmark.html embind_benchmark.cpp

test/test_browser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5030,10 +5030,10 @@ def test_emscripten_performance_now(self):
50305030

50315031
@requires_threads
50325032
def test_embind_with_pthreads(self):
5033-
self.btest_exit(test_file('embind/test_pthreads.cpp'), args=['--bind', '-pthread', '-sPTHREAD_POOL_SIZE=2'])
5033+
self.btest_exit(test_file('embind/test_pthreads.cpp'), args=['-lembind', '-pthread', '-sPTHREAD_POOL_SIZE=2'])
50345034

50355035
def test_embind_with_asyncify(self):
5036-
self.btest('embind_with_asyncify.cpp', '1', args=['--bind', '-sASYNCIFY'])
5036+
self.btest('embind_with_asyncify.cpp', '1', args=['-lembind', '-sASYNCIFY'])
50375037

50385038
# Test emscripten_console_log(), emscripten_console_warn() and emscripten_console_error()
50395039
def test_emscripten_console_log(self):

test/test_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7807,7 +7807,7 @@ def test_embind_sync_if_pthread_delayed(self):
78077807
self.set_setting('WASM_ASYNC_COMPILATION', 0)
78087808
self.set_setting('PTHREAD_POOL_DELAY_LOAD', 1)
78097809
self.set_setting('PTHREAD_POOL_SIZE', 1)
7810-
self.emcc_args += ['--bind', '--post-js=' + test_file('core/pthread/test_embind_sync_if_pthread_delayed.post.js')]
7810+
self.emcc_args += ['-lembind', '--post-js=' + test_file('core/pthread/test_embind_sync_if_pthread_delayed.post.js')]
78117811
self.do_run_in_out_file_test(test_file('core/pthread/test_embind_sync_if_pthread_delayed.cpp'))
78127812

78137813
### Tests for tools

test/test_other.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2736,7 +2736,7 @@ def test_embind_finalization(self):
27362736
[EMXX,
27372737
test_file('embind/test_finalization.cpp'),
27382738
'--pre-js', test_file('embind/test_finalization.js'),
2739-
'--bind']
2739+
'-lembind']
27402740
)
27412741
self.node_args += ['--expose-gc']
27422742
output = self.run_js('a.out.js', engine=config.NODE_JS)

0 commit comments

Comments
 (0)