-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[cxxmodules] Introduce fCxxModulesEnabled private member #2700
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
Conversation
|
Starting build on |
core/metacling/src/TCling.h
Outdated
| TObjArray* fRootmapFiles; // Loaded rootmap files. | ||
| Bool_t fLockProcessLine; // True if ProcessLine should lock gInterpreterMutex. | ||
| Bool_t fAllowLibLoad; // True if library load is allowed (i.e. not in rootcling) | ||
| Bool_t fHasCxxModule; // True if C++ modules was enabled |
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.
Could you rename to fCxxModulesEnabled = false and just flip the flag if R__USE_CXXMODULES is set or getenv("ROOT_MODULES") != nullptr?
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.
What's the problem with fHasCxxModule ?
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.
It has no meaning to me. What is has cxxmodule? Does it mean it was built or ROOT is intending to use it? Also the name is inconsistent to the comment next to it ;)
PS: We have cases where we have R__USE_CXXMODULES set but we still have no pcm file which can be misleading if you read the variable name.
|
@phsft-bot build just on slc6/gcc62 with flags -Druntime_cxxmodules=On -Dctest_test_exclude_none=on |
|
Starting build on |
ccfcd55 to
a2b280a
Compare
|
Starting build on |
|
@phsft-bot build! |
|
Starting build on |
vgvassilev
left a comment
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.
LGTM!
|
Build failed on fedora28/native. Warnings:
And 25 more |
|
What!? So it was actually this change which was upsetting fedora... |
a2b280a to
69f78e2
Compare
|
Starting build on |
This is a better implementation over doing #ifdef R__USE__CXXMODULES everywhere.
|
Build failed on mac1013/native. |
This is a better implementation over doing #ifdef R__USE__CXXMODULES
everywhere.