Skip to content

Commit ff90ade

Browse files
authored
Fix ImageProcessor OSS build (pytorch#20010)
Fix linker error in image processor in OSS build. Internal buck has this flag defined.
1 parent a8a26ce commit ff90ade

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

extension/image/image_processor.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include <cstring>
1313
#include <memory>
1414

15+
#define STB_IMAGE_RESIZE_IMPLEMENTATION
1516
#include <stb_image_resize.h>
1617

1718
#include <executorch/runtime/core/error.h>

test/run_oss_cpp_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ build_executorch() {
4747
-DEXECUTORCH_BUILD_KERNELS_QUANTIZED=ON \
4848
-DEXECUTORCH_BUILD_EXTENSION_DATA_LOADER=ON \
4949
-DEXECUTORCH_BUILD_EXTENSION_FLAT_TENSOR=ON \
50-
-DEXECUTORCH_BUILD_EXTENSION_IMAGE=OFF \
50+
-DEXECUTORCH_BUILD_EXTENSION_IMAGE=ON \
5151
-DEXECUTORCH_BUILD_EXTENSION_MODULE=ON \
5252
-DEXECUTORCH_BUILD_EXTENSION_NAMED_DATA_MAP=ON \
5353
-DEXECUTORCH_BUILD_EXTENSION_LLM=ON \

0 commit comments

Comments
 (0)