diff --git a/toolkit/moz.configure b/toolkit/moz.configure index 4e802854bb48..ad7d38634ba2 100644 --- a/toolkit/moz.configure +++ b/toolkit/moz.configure @@ -776,7 +776,6 @@ def stylo(stylo_config, bindgen_config_paths, bindgen_enabled): return namespace( libclang_path=bindgen_config_paths.libclang_path, clang_path=bindgen_config_paths.clang_path, - bindgen_enabled=bool(bindgen_enabled), ) set_config('MOZ_STYLO', stylo_config.build) @@ -786,7 +785,7 @@ set_define('MOZ_STYLO_ENABLE', stylo_config.enable) set_config('MOZ_LIBCLANG_PATH', stylo.libclang_path) set_config('MOZ_CLANG_PATH', stylo.clang_path) -set_config('MOZ_STYLO_BINDGEN', stylo.bindgen_enabled) +set_config('MOZ_STYLO_BINDGEN', depends_if('--enable-stylo-build-bindgen')(lambda _: True)) option('--with-servo', env='SERVO_TARGET_DIR', nargs=1, help='Absolute path of the target directory where libgeckoservo can '