Skip to content

Commit c009cce

Browse files
namanahujafacebook-github-bot
authored andcommitted
Add more files to shim
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
1 parent 6b8b88f commit c009cce

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

shim/build_defs/roar.bzl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
load("@fbsource//tools/build_defs:buckconfig.bzl", "read_bool")
2+
3+
def roar_no_jit():
4+
use_roar_jit = read_bool("fbcode", "use_roar_jit", required = False)
5+
if use_roar_jit:
6+
return ["-fforce-no-jit"]
7+
return []

shim/tools/build_defs/buckconfig.bzl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
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")
2+
3+
read = _read
4+
read_string = _read_string
5+
read_choice = _read_choice
6+
read_bool = _read_bool
7+
read_int = _read_int
8+
read_list = _read_list
9+
resolve_alias = _resolve_alias

0 commit comments

Comments
 (0)