From 353fc91ae7a7045aa4679e62ece2cdec535c084c Mon Sep 17 00:00:00 2001 From: songqi Date: Wed, 12 Apr 2023 16:17:41 +0800 Subject: [PATCH] Fix recordName in CollectInputFilesFromFileDirectory for aotTest Issue: I6V3PD Test: aot test Signed-off-by: songqi Change-Id: I7fce23c5f56c26977bdb782f8a1de7c6e8b1a896 --- es2panda/aot/options.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/es2panda/aot/options.cpp b/es2panda/aot/options.cpp index ec8d03070c..885fa76372 100644 --- a/es2panda/aot/options.cpp +++ b/es2panda/aot/options.cpp @@ -144,7 +144,8 @@ bool Options::CollectInputFilesFromFileDirectory(const std::string &input, const } for (const auto &f : files) { - es2panda::SourceFile src(f, util::Helpers::BaseName(f), scriptKind_, GetScriptExtensionFromStr(extension)); + es2panda::SourceFile src(f, RemoveExtension(f.substr(input.length() + 1)), + scriptKind_, GetScriptExtensionFromStr(extension)); sourceFiles_.push_back(src); } -- Gitee