Skip to content

Commit f9bf71f

Browse files
cccclaifacebook-github-bot
authored andcommitted
set env in buck file (#5736)
Summary: Pull Request resolved: #5736 Simply the the env path and no need to set `LD_LIBRARY_PATH` manually Differential Revision: D63556730
1 parent 963f809 commit f9bf71f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

examples/models/llama2/TARGETS

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Any targets that should be shared between fbcode and xplat must be defined in
22
# targets.bzl. This file can contain fbcode-only targets.
33

4+
load("@fbsource//tools/build_defs:fb_native_wrapper.bzl", "fb_native")
45
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
56
load(":targets.bzl", "define_common_targets")
67

@@ -65,6 +66,14 @@ runtime.python_binary(
6566
],
6667
)
6768

69+
fb_native.command_alias(
70+
name = "export_llama_qnn",
71+
env = {
72+
"LD_LIBRARY_PATH": "$(location fbsource//third-party/qualcomm/qnn/qnn-2.25:qnn_offline_compile_libs)",
73+
},
74+
exe = ":export_llama",
75+
)
76+
6877
runtime.python_library(
6978
name = "export_library",
7079
srcs = [

0 commit comments

Comments
 (0)