Describe the issue
I have compiled onnxruntime with the following command (on linux):
./build.sh --cmake_extra_defines=onnxruntime_BUILD_UNIT_TESTS=OFF --config Release --parallel --compile_no_warning_as_error --skip_submodule_sync --update --build --build_dir build/linux
When linking this to a rust library (via ort), there seems to be an issue where, if the flag --cmake_extra_defines=onnxruntime_BUILD_UNIT_TESTS=OFF is given, re2 isn't compiled (only when building a static library, apparently, it gets built when building the shared library).
Urgency
No response
Target platform
Linux x86_64
Build script
./build.sh --cmake_extra_defines=onnxruntime_BUILD_UNIT_TESTS=OFF --config Release --parallel --compile_no_warning_as_error --skip_submodule_sync --update --build --build_dir build/linux
Error / output
There is no error at build time, linking downstream fails as described above.
Visual Studio Version
No response
GCC / Compiler Version
No response
Describe the issue
I have compiled
onnxruntimewith the following command (on linux):./build.sh --cmake_extra_defines=onnxruntime_BUILD_UNIT_TESTS=OFF --config Release --parallel --compile_no_warning_as_error --skip_submodule_sync --update --build --build_dir build/linuxWhen linking this to a rust library (via ort), there seems to be an issue where, if the flag
--cmake_extra_defines=onnxruntime_BUILD_UNIT_TESTS=OFFis given,re2isn't compiled (only when building a static library, apparently, it gets built when building the shared library).Urgency
No response
Target platform
Linux x86_64
Build script
./build.sh --cmake_extra_defines=onnxruntime_BUILD_UNIT_TESTS=OFF --config Release --parallel --compile_no_warning_as_error --skip_submodule_sync --update --build --build_dir build/linux
Error / output
There is no error at build time, linking downstream fails as described above.
Visual Studio Version
No response
GCC / Compiler Version
No response