[SERVER-38201] IDL does not work well with enterprise module Created: 19/Nov/18  Updated: 29/Oct/23  Resolved: 16/Jan/19

Status: Closed
Project: Core Server
Component/s: IDL
Affects Version/s: None
Fix Version/s: 4.1.7

Type: Bug Priority: Major - P3
Reporter: Xiangyu Yao (Inactive) Assignee: Mark Benvenuto
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Security 2018-12-03, Security 2018-12-17, Security 2018-12-31, Security 2019-01-14, Security 2019-01-28
Participants:

 Description   

The x_gen.h and x_gen.cpp will be generated in the build directory of the enterprise module and it is probably not listed as an include path so I have to specify the full .h path '#include "mongo/db/modules/enterprise/src/hot_backup/x_gen.h"'.



 Comments   
Comment by Githook User [ 16/Jan/19 ]

Author:

{'username': 'markbenvenuto', 'email': 'mark.benvenuto@mongodb.com', 'name': 'Mark Benvenuto'}

Message: SERVER-38201 Add enterprise build directory to include path
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/4e3a7d737aae3b150360321009b9437d510a9e95

Comment by Mark Benvenuto [ 20/Nov/18 ]

The reason why you need the full path is because the only include path specified to the compiler that includes the build directory is "-IIbuild\<VARIANT_DIR>". In order to make a shorter path work, you need to add a line like this:

env.AppendUnique(CPPPATH=['$BUILD_DIR/src']) 

In something like the Enterprise module's SConscript. If you added something like this to the include path, you could then include the IDL files just like "#include "hot_backups/x_gen.h""

Generated at Thu Feb 08 04:48:15 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.