forked from iree-org/iree
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD
40 lines (37 loc) · 1.11 KB
/
BUILD
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
31
32
33
34
35
36
37
38
39
40
# Copyright 2020 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
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
# Helper for getting linkopts into libraries in a way we can easily spot and
# rewrite from bazel-to-cmake and copybara.
cc_library(
name = "default_linkopts",
linkopts = select({
"//build_tools/bazel:iree_is_msvc": [],
"//build_tools/bazel:iree_is_android": [
# Android provides its own pthreads support with no linking required.
],
"//conditions:default": [
# Just include libraries that should be presumed in 2020.
"-lpthread",
],
}),
)
cc_library(
name = "dl",
linkopts = select({
"//build_tools/bazel:iree_is_msvc": [],
"//build_tools/bazel:iree_is_android": [
"-ldl",
],
"//conditions:default": [
"-ldl",
],
}),
)