forked from iree-org/iree
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.bazel
30 lines (27 loc) · 910 Bytes
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Copyright 2023 The IREE Authors
#
# Licensed under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_binary")
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
iree_compiler_cc_binary(
name = "libIREECompiler.so",
srcs = [
"//compiler/src/iree/compiler/API:api_exports.c",
],
linkopts = [
"-Wl,--version-script=$(location //compiler/src/iree/compiler/API:api_exports.ld)",
"-Wl,--no-undefined",
],
linkshared = 1,
deps = [
"//compiler/bindings/c:headers",
"//compiler/src/iree/compiler/API:StaticImpl",
"//compiler/src/iree/compiler/API:api_exports.ld",
],
)