mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-23 19:32:23 +00:00
[Node.js binding] fix linux build (#3927)
This commit is contained in:
parent
50f798dad6
commit
39814319b2
2 changed files with 2 additions and 0 deletions
|
|
@ -13,6 +13,7 @@ execute_process(COMMAND node -e "console.log(process.arch)"
|
|||
execute_process(COMMAND node -e "console.log(process.platform)"
|
||||
OUTPUT_VARIABLE node_platform OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
file(READ ${CMAKE_SOURCE_DIR}/../VERSION_NUMBER ort_version)
|
||||
string(STRIP "${ort_version}" ort_version)
|
||||
set(dist_folder "${CMAKE_SOURCE_DIR}/bin/napi-v3/${node_platform}/${node_arch}/")
|
||||
|
||||
include_directories(${CMAKE_JS_INC})
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
#include "onnxruntime_cxx_api.h"
|
||||
#include <napi.h>
|
||||
|
||||
#include <cmath>
|
||||
#include <unordered_map>
|
||||
|
||||
#include "common.h"
|
||||
|
|
|
|||
Loading…
Reference in a new issue