Skip to content

Commit 9ca7d41

Browse files
committed
notice simd signal from fastcomp
1 parent 3bb8425 commit 9ca7d41

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

emscripten.py

+3
Original file line numberDiff line numberDiff line change
@@ -804,6 +804,9 @@ def fix_dot_zero(m):
804804
map(lambda x: x[1:], metadata['implementedFunctions'])
805805
)
806806
) + map(lambda x: x[1:], metadata['externs'])
807+
if metadata['simd']:
808+
settings['SIMD'] = 1
809+
settings['ASM_JS'] = 2
807810

808811
# Save settings to a file to work around v8 issue 1579
809812
settings_file = temp_files.get('.txt').name

src/jsifier.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1871,7 +1871,7 @@ function JSify(data, functionsOnly) {
18711871
print('// Warning: printing of i64 values may be slightly rounded! No deep i64 math used, so precise i64 code not included');
18721872
print('var i64Math = null;');
18731873
}
1874-
if (Types.usesSIMD) {
1874+
if (Types.usesSIMD || SIMD) {
18751875
print(read('simd.js'));
18761876
}
18771877

0 commit comments

Comments
 (0)