Skip to content

Commit 2be6ae2

Browse files
committed
feat: 声明 hosted-standard-library
构建工具在 configure 期拒绝没有操作系统的目标上的 import std,理由是「那种目标 没有 hosted 标准库」—— 而这个包正是一份。这件事是依赖图的性质,不是三元组的 性质,所以在这里声明、在那里读。 配套改动:mcpp-community/mcpp#486
1 parent bcc9981 commit 2be6ae2

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

mcpp.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ license = "Apache-2.0"
77
authors = ["mcpplibs"]
88
repo = "https://github.com/mcpplibs/openkal-llvm-runtime"
99

10+
# What this package is, stated as a capability rather than left to be inferred
11+
# from its name.
12+
#
13+
# The build tool refuses `import std;' on a target with no operating system,
14+
# and the refusal is right whenever nothing supplies a hosted standard library
15+
# --- which was every such target until this package. The fact that one is
16+
# present is a property of the dependency graph, not of the triple, so it is
17+
# declared here and read there.
18+
provides = ["hosted-standard-library"]
19+
1020
# The C library beneath. A C++ standard library is not portable in the sense a
1121
# program is: it is configured for one C library and compiled against that
1222
# library's headers, and the configuration is what this package supplies. The

0 commit comments

Comments
 (0)