From s.i.sosuke at gmail.com Sun Jun 6 02:54:27 2021 From: s.i.sosuke at gmail.com (Sosuke Imai) Date: Sun, 6 Jun 2021 11:54:27 +0900 Subject: [build2] Importing module interface partition Message-ID: Nice to meet you. Let me ask the way to import module interface partitions in other partitions. In my understanding, a module interface partition can be imported by other interface partitions which belong to the same module. ex) export module egret.fundamental:concepts.integral_constant; import :concepts.static_value; // I want to import egret.fundamental:concepts.static_value; With b command, I got the following error messages: > libegret/egret/fundamental/concepts/integral_constant.mxx: error: failed > to correctly guess module name from > libegret/:egret/fundamental/concepts/mxx{static_value} > info: guessed: > egret.fundamental:concepts.integral_constant:concepts.static_value > info: actual: egret.fundamental:concepts.static_value > info: consider adjusting module interface file names or > info: consider specifying module name with cxx.module_name Can I correctly compile with updating buildfile in a suitable manner? (Or did I misunderstand some c++module specifications?) I use build2 with cloning from github. (commit e3a05597ec42ed02230918fe0bcada3dbb521209) Thank you very much in advance. Best regards, Sosuke -------------- next part -------------- An HTML attachment was scrubbed... URL: From boris at codesynthesis.com Mon Jun 7 10:01:26 2021 From: boris at codesynthesis.com (Boris Kolpackov) Date: Mon, 7 Jun 2021 12:01:26 +0200 Subject: [build2] Importing module interface partition In-Reply-To: References: Message-ID: Sosuke Imai via users writes: > export module egret.fundamental:concepts.integral_constant; > import :concepts.static_value; // I want to import egret.fundamental:concepts.static_value; > > With b command, I got the following error messages: > > > libegret/egret/fundamental/concepts/integral_constant.mxx: error: failed to correctly guess module name from > > libegret/:egret/fundamental/concepts/mxx{static_value} > > info: guessed: egret.fundamental:concepts.integral_constant:concepts.static_value > > info: actual: egret.fundamental:concepts.static_value > > info: consider adjusting module interface file names or > > info: consider specifying module name with cxx.module_name Yes, that's a bug in build2, thanks for the report. It's now fixed, commit 274d65d2a7[1] [1] https://git.build2.org/cgit/build2/commit/?id=274d65d2a76ed48cb618e25e0916e20ba3d5c87b From s.i.sosuke at gmail.com Mon Jun 7 10:24:59 2021 From: s.i.sosuke at gmail.com (Sosuke Imai) Date: Mon, 7 Jun 2021 19:24:59 +0900 Subject: [build2] Importing module interface partition In-Reply-To: References: Message-ID: Dear Boris, Thank you so much for your quick fix. I checked that b command worked well with the commit. Best regards, Sosuke 2021年6月7日(月) 19:01 Boris Kolpackov : > Sosuke Imai via users writes: > > > export module egret.fundamental:concepts.integral_constant; > > import :concepts.static_value; // I want to import > egret.fundamental:concepts.static_value; > > > > With b command, I got the following error messages: > > > > > libegret/egret/fundamental/concepts/integral_constant.mxx: error: > failed to correctly guess module name from > > > libegret/:egret/fundamental/concepts/mxx{static_value} > > > info: guessed: > egret.fundamental:concepts.integral_constant:concepts.static_value > > > info: actual: egret.fundamental:concepts.static_value > > > info: consider adjusting module interface file names or > > > info: consider specifying module name with cxx.module_name > > Yes, that's a bug in build2, thanks for the report. It's now fixed, > commit 274d65d2a7[1] > > [1] > https://git.build2.org/cgit/build2/commit/?id=274d65d2a76ed48cb618e25e0916e20ba3d5c87b > -------------- next part -------------- An HTML attachment was scrubbed... URL: