提交 ff9e6121 编写于 作者: M Megvii Engine Team

fix(lite): fix lar LITE_WITH_CUDA and LITE_WITH_OPENCL invalid for bazel

GitOrigin-RevId: c10bb0fbe1dfed2fe90f349796e30cec3845f667
上级 73112558
load("//brain/megbrain/lite:flags.bzl","pthread_select")
load("//brain/megbrain/lite:flags.bzl","pthread_select", "lite_opts")
cc_library(
name = "mgblar",
copts = ["-std=c++14"],
srcs = glob(["src/**/*.cpp"], exclude = ["src/main.cpp"]),
hdrs = glob(["src/**/*.h"]),
includes = ["src"],
......@@ -11,15 +8,14 @@ cc_library(
"no_exceptions",
"no_rtti",
]),
defines = [
"LITE_BUILD_WITH_MGE=1",
],
deps = ["//brain/megbrain/lite:lite_static_test"]+
pthread_select(
["@com_github_gflags_gflags//:gflags_nothreads"],
["//external:gflags"]
),
copts = ["-std=c++14"] + lite_opts,
alwayslink = 1,
visibility = ["//visibility:public"],
)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册