Skip to content

Commit

Permalink
Add more files to shim
Browse files Browse the repository at this point in the history
Summary:
X-link: facebookincubator/phabtest_rust#46

These were added recently to fbsource. Need them for buck build

Reviewed By: bigfootjon

Differential Revision: D58203001

fbshipit-source-id: 9c5d33a885a4bea52e8313ded4f7e8aa5667f180
  • Loading branch information
namanahuja authored and facebook-github-bot committed Jun 6, 2024
1 parent c9495b2 commit 530f4de
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
7 changes: 7 additions & 0 deletions shim/build_defs/roar.bzl
Original file line number Diff line number Diff line change
@@ -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 []
9 changes: 9 additions & 0 deletions shim/tools/build_defs/buckconfig.bzl
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 530f4de

Please sign in to comment.