Skip to content

Commit

Permalink
fix xnnpack wasm build (microsoft#12845)
Browse files Browse the repository at this point in the history
  • Loading branch information
guschmue authored Sep 7, 2022
1 parent 437409c commit f856be1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions cmake/external/xnnpack.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,13 @@ if (onnxruntime_BUILD_WEBASSEMBLY)
endif()

message("Adding WebAssembly Source Files to XNNPACK")
set(wasm_src_patterns "${XNNPACK_DIR}/src/wasm-*.c"
set(wasm_src_patterns "${XNNPACK_DIR}/src/init.c"
"${XNNPACK_DIR}/src/params-init.c"
"${XNNPACK_DIR}/src/qu8-avgpool/9*-minmax-scalar-c1.c"
"${XNNPACK_DIR}/src/u8-rmax/scalar.c"
"${XNNPACK_DIR}/src/x8-zip/x*-scalar.c"
"${XNNPACK_DIR}/src/x*-transposec/gen/2x4-scalar-int.c"
"${XNNPACK_DIR}/src/wasm-*.c"
"${XNNPACK_DIR}/src/*-wasm-*.c"
"${XNNPACK_DIR}/src/*-wasm.c")
set(wasm32_asm_src_patterns "${XNNPACK_DIR}/src/wasm_shr_*.S")
Expand All @@ -57,4 +63,4 @@ if (onnxruntime_BUILD_WEBASSEMBLY)

target_sources(XNNPACK PRIVATE ${XNNPACK_WASMSIMD_MICROKERNEL_SRCS})
endif()
endif()
endif()

0 comments on commit f856be1

Please sign in to comment.