-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[cxxmodules] Teach TCling::RegisterModule to work with real module fi… #1356
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
[cxxmodules] Teach TCling::RegisterModule to work with real module fi… #1356
Conversation
|
Starting build on |
|
@phsft-bot build just on slc6/gcc62 with flags -Druntime_cxxmodules=On -Dctest_test_exclude_none=on |
|
Starting build on |
|
Way to go, @vgvassilev ! (Crossing my fingers for roottest...) |
|
Build failed on slc6/gcc62. Errors:
And 7 more Warnings:
And 7 more Failing tests:
And 398 more |
6aee1ec to
2b4fd2b
Compare
|
Starting build on |
core/metacling/src/TCling.cxx
Outdated
| if (TheSema.getLangOpts().Modules) { | ||
| bool success = LoadModule(llvm::StringRef(modulename).substr(3), *fInterpreter); | ||
| (void)success; | ||
| assert(success && "Failed to load module!"); |
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.
Maybe worth turning this into an error that prints the module name.
2b4fd2b to
836f351
Compare
|
Starting build on |
|
Build failed on slc6/gcc62. Errors:
And 10 more Warnings:
And 7 more Failing tests:
And 369 more |
836f351 to
b9966b1
Compare
|
Starting build on |
|
Build failed on slc6/gcc62. Errors:
And 2 more Warnings:
And 7 more |
b9966b1 to
4bbbebe
Compare
|
Starting build on |
|
Build failed on slc6/gcc62. Errors:
Warnings:
And 7 more |
4bbbebe to
160ae73
Compare
|
Starting build on |
|
Build failed on slc6/gcc62. Errors:
And 98 more Warnings:
And 7 more Failing tests:
And 396 more |
160ae73 to
ff9e727
Compare
|
Starting build on |
|
Build failed on slc6/gcc62. Errors:
Warnings:
And 7 more Failing tests:
And 255 more |
|
Starting build on |
49929ea to
97b2b41
Compare
|
Starting build on |
|
Build failed on slc6/gcc62. Errors:
And 8 more Warnings:
And 7 more Failing tests:
And 62 more |
b5e8775 to
a0d83d1
Compare
|
Starting build on |
|
Hi @vgvassilev I think you picked up a couple of commits while rebasing that shouldn't be in this PR? :) |
|
Build failed on slc6/gcc62. Errors:
Warnings:
|
a0d83d1 to
4946f4d
Compare
|
Starting build on |
4946f4d to
3e62f9d
Compare
|
Starting build on |
|
@bluehood, thanks for the hint. It looks like a GH issue. My branch looks okay. |
|
Build failed on slc6/gcc62. Errors:
Warnings:
And 7 more Failing tests:
And 42 more |
|
@phsft-bot build with flags -Druntime_cxxmodules=Off -Dctest_test_exclude_none=off |
|
Starting build on |
…les. When we load a library, during its static intialization it calls TCling::RegisterModule to make ROOT's runtime aware of that load. Regular ROOT also will do some header parsing to add the minimal infrastructure in place for cling to be able to call into that library. C++ modules define away the need to parse. This patch intends to skip all parsing at this stage and fix recursive parsing issues for C++ modules.
3e62f9d to
fdb2f41
Compare
|
Starting build on |
|
Build failed on mac1012/native. Failing tests: |
|
Build failed on ubuntu14/native. |
…les.
When we load a library, during its static intialization it calls
TCling::RegisterModule to make ROOT's runtime aware of that load. Regular
ROOT also will do some header parsing to add the minimal infrastructure
in place for cling to be able to call into that library.
C++ modules define away the need to parse. This patch intends to skip all
parsing at this stage and fix recursive parsing issues for C++ modules.