Skip to content

Commit b1f39b5

Browse files
committed
Normalize pybind VGF env opt-in
Signed-off-by: Rob Elliott <Robert.Elliott@arm.com> Change-Id: Idbe56c440a7c720d232d1e593674485509f687d1
1 parent 2ff2065 commit b1f39b5

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tools/cmake/preset/pybind.cmake

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ set_overridable_option(EXECUTORCH_BUILD_WHEEL_DO_NOT_USE ON)
3131
# override mechanism.
3232
set(_executorch_pybind_enable_vgf OFF)
3333
if(DEFINED ENV{EXECUTORCH_PYBIND_ENABLE_VGF})
34-
set(_executorch_pybind_enable_vgf "$ENV{EXECUTORCH_PYBIND_ENABLE_VGF}")
34+
if("$ENV{EXECUTORCH_PYBIND_ENABLE_VGF}" STREQUAL "ON")
35+
set(_executorch_pybind_enable_vgf ON)
36+
else()
37+
set(_executorch_pybind_enable_vgf OFF)
38+
endif()
3539
endif()
3640

3741
# TODO(larryliu0820): Temporarily disable building llm_runner for Windows wheel

0 commit comments

Comments
 (0)