aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-20 11:57:16 +0000
committer_ov4 <ov4@ov4.org>2026-10-20 11:57:16 +0000
commit62b605c6c0ea13e9763c0a0115464007b13a8831 (patch)
tree53c27965f5a365682e0d79fd96e25b228ecb9dca /tools
parentbfe2e75d7e3b372e55369677028429990c49bc54 (diff)
refactor(strings): replace compiler builtins with the STRING library
Construct literals as STRING values and route string operations through ordinary library functions and operators. Preserve value ownership in records, arrays, constants and file I/O. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/driver/main.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/driver/main.cc b/tools/driver/main.cc
index 4d41e5e..a55d1af 100644
--- a/tools/driver/main.cc
+++ b/tools/driver/main.cc
@@ -172,7 +172,8 @@ int main(int argc, char **argv) {
Units.back().Visible[I] = true;
if (!NoStd && I < UserInputCount)
for (size_t J = UserInputCount; J < InputPaths.size(); ++J)
- Units.back().Visible[J] = true;
+ if (llvm::sys::path::filename(InputPaths[J]) == "std.cps")
+ Units.back().Visible[J] = true;
}
for (size_t I = 0; I < Units.size(); ++I) {
cps::DiagnosticSource = Units.size() > 1 ? Units[I].Path : "";