blob: 6249557f04415fd87062636d4b5e6e9b98db265e [file] [log] [blame]
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
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({
"//iree:iree_is_msvc": [],
"//iree:iree_is_android": [
"-ldl",
# Android provides its own pthreads support with no linking required.
],
"//conditions:default": [
# Just include libraries that should be presumed in 2020.
"-ldl",
"-lpthread",
],
}),
)