- 
                Notifications
    You must be signed in to change notification settings 
- Fork 1.4k
          [interop] Fix build errors with -Dtesting=off
          #17791
        
          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
| Test Results    18 files      18 suites   4d 10h 40m 28s ⏱️ For more details on these failures, see this check. Results for commit 0f2b341. ♻️ This comment has been updated with latest results. | 
3f4d1a9    to
    e1f3605      
    Compare
  
    3e1b7e3    to
    4e39ea9      
    Compare
  
    | Why do we need this PR I thought everything was already in CppInterOp? | 
| 
 Yes the fix from compiler-research/CppInterOp#506 is pulled in by using the later commit, but  the testing flags are not correctly propagated and CppInterOp does not configure or check the flags when it is not built standalone. For eg: currently with ROOT you can set both  | 
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! Thanks for the PR, and it also fixed the usecase of building ROOT with -Dfail-on-missin=ON -Dtesting=OFF -Dbuiltin_gtest=OFF without internet connection, which was broken by the initial interop PR. Building ROOT without internet connection is important for some experiments need to build ROOT on network-isolated nodes (see also #11603). I also tested that it works again with this PR.
@aaronj0, please merge when you're ready.
b8d249d    to
    e398db2      
    Compare
  
    Also moves the addition of `CppInterOpUnitTests` to the build chain, from metacling, to the interpreter cmake
e398db2    to
    0f2b341      
    Compare
  
    | The failures look unrelated to this PR, merging | 
This was due to a bug in CppInterOp where
option(CPPINTEROP_ENABLE_TESTING "Enables the testing infrastructure." BOOL)was defined twice conditionally. This is incorrect and does not allow users to override the option, leading to testing always being on. Fixed with compiler-research/CppInterOp#506This also requires ROOT to set the same flag in the interpreter CMake (which did not work earlier due to the underlying bug in InterOp)
cc @bellenot