Fix building for HarmonyOS (#2125)
This commit is contained in:
@@ -53,7 +53,7 @@ std::unique_ptr<OnlineRecognizerImpl> OnlineRecognizerImpl::Create(
|
||||
"Please rebuild sherpa-onnx with -DSHERPA_ONNX_ENABLE_RKNN=ON if you "
|
||||
"want to use rknn.");
|
||||
SHERPA_ONNX_EXIT(-1);
|
||||
return nullptr
|
||||
return nullptr;
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -112,7 +112,7 @@ std::unique_ptr<OnlineRecognizerImpl> OnlineRecognizerImpl::Create(
|
||||
"Please rebuild sherpa-onnx with -DSHERPA_ONNX_ENABLE_RKNN=ON if you "
|
||||
"want to use rknn.");
|
||||
SHERPA_ONNX_EXIT(-1);
|
||||
return nullptr
|
||||
return nullptr;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
#include "sherpa-onnx/csrc/rknn/silero-vad-model-rknn.h"
|
||||
#endif
|
||||
|
||||
#include "sherpa-onnx/csrc/macros.h"
|
||||
#include "sherpa-onnx/csrc/silero-vad-model.h"
|
||||
|
||||
namespace sherpa_onnx {
|
||||
|
||||
Reference in New Issue
Block a user