From 58800523411f91b483d1b97bc04e716843ef1f60 Mon Sep 17 00:00:00 2001 From: Naman Ahuja Date: Wed, 5 Jun 2024 12:29:48 -0700 Subject: [PATCH] Add more files to shim Summary: These were added recently to fbsource. Need them for buck build Differential Revision: D58203001 --- shim/build_defs/roar.bzl | 7 +++++++ shim/tools/build_defs/buckconfig.bzl | 9 +++++++++ 2 files changed, 16 insertions(+) create mode 100644 shim/build_defs/roar.bzl create mode 100644 shim/tools/build_defs/buckconfig.bzl diff --git a/shim/build_defs/roar.bzl b/shim/build_defs/roar.bzl new file mode 100644 index 0000000000..510536ae26 --- /dev/null +++ b/shim/build_defs/roar.bzl @@ -0,0 +1,7 @@ +load("@fbsource//tools/build_defs:buckconfig.bzl", "read_bool") + +def roar_no_jit(): + use_roar_jit = read_bool("fbcode", "use_roar_jit", required = False) + if use_roar_jit: + return ["-fforce-no-jit"] + return [] diff --git a/shim/tools/build_defs/buckconfig.bzl b/shim/tools/build_defs/buckconfig.bzl new file mode 100644 index 0000000000..bdc51490be --- /dev/null +++ b/shim/tools/build_defs/buckconfig.bzl @@ -0,0 +1,9 @@ +load("@prelude//utils:buckconfig.bzl", _read = "read", _read_bool = "read_bool", _read_choice = "read_choice", _read_int = "read_int", _read_list = "read_list", _read_string = "read_string", _resolve_alias = "resolve_alias") + +read = _read +read_string = _read_string +read_choice = _read_choice +read_bool = _read_bool +read_int = _read_int +read_list = _read_list +resolve_alias = _resolve_alias