blob: 121767d25c8890391c2a1043861087cc9d09a572 [file] [log] [blame] [edit]
# Copyright 2022 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("../libc.gni")
llvm_libc_source_set("stdlib") {
functions = [
"abs",
"atoi",
"atol",
"atoll",
"bsearch",
"div",
"labs",
"ldiv",
"llabs",
"lldiv",
"strtol",
"strtoll",
"strtoul",
"strtoull",
"qsort",
]
deps = [ ":abort" ]
}
llvm_libc_source_set("abort") {
functions = [ "abort" ]
os_functions = functions
if (is_fuchsia) {
local_deps = [
"//src/zircon/lib/zircon",
"//zircon/system/ulib/zircon-internal",
]
}
}
# This provides an archive library of the universally safe stdlib functions.
# When built outside the "user.libc" environment, these always define only
# hidden-visibility symbols and should be safe in any build environment.
static_library("hermetic") {
complete_static_lib = true
deps = [ ":stdlib" ]
}