-
-
Notifications
You must be signed in to change notification settings - Fork 31.6k
build,win: fix dll build #58357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
build,win: fix dll build #58357
Conversation
Review requested:
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #58357 +/- ##
=======================================
Coverage 90.23% 90.24%
=======================================
Files 633 633
Lines 186847 186847
Branches 36685 36685
=======================================
+ Hits 168594 168612 +18
+ Misses 11041 11037 -4
+ Partials 7212 7198 -14
🚀 New features to boost your workflow:
|
[[nodiscard]] auto GetBuiltinIds() const { | ||
return std::views::keys(*source_.read()); | ||
} | ||
[[nodiscard]] auto GetBuiltinIds() const -> decltype(auto); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The function is not inlined. It should not use auto
type for return value. Otherwise the type can not be deducted if this function is used without its definition.
[[nodiscard]] auto GetBuiltinIds() const -> decltype(auto); | |
[[nodiscard]] std::ranges::keys_view<std::ranges::ref_view<const BuiltinSourceMap>> GetBuiltinIds() const; |
Fixes a linker error when building Node.js DLL with ClangCL by moving
BuiltinLoader::GetBuiltinIds()
implementation from.h
to.cc
file.This PR tries different approach from #58235 based on @joyeecheung's comment
Fixes: #58208