From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05olkn2027.outbound.protection.outlook.com [40.92.89.27]) by sourceware.org (Postfix) with ESMTPS id 31CDC3858035 for ; Tue, 19 Oct 2021 15:58:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 31CDC3858035 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XcSp4uaEwBimcPhPU8GtpbdzEJmPxQtD5+hP/2esRljKofwQeFG7TN5HO+wxVDqLdBGx8Zwdw2WT8ponTo0cjYqWM6a4q/6jzRRkHwcp30HHcuXlKgdCUq0BPF2Nc64KG3+dzza/ORglMubWE9XCkkPaGLZGgRLuyadCCZ5aL7/td37AWZlMygDQyYmgxK14TyvCa4mr65E3MrNVrEVUVFiEwra6BYo8TgBRsHTjwa+CcMpKZCadkURtq6K96c3zxdRI6vSJBQb0DDq9NFsaOr09GFg/FwYujXcsA3XV/ZsU51U3L+VwnV2pQUfgfr/GXhxgU7VtMxELfPt2GEePKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=cWL+TElwTKGqSOacxThGmsdy1IrpOqtyuX/tieib+wY=; b=kZeiBFMKVxIeeRSDXxFT57MqIns2gIUqY1XLnr52wlKWwcsaLkSlwzJJug1BI0/ZSm7SlEO1lDbXFAmn3Wy/W5EeoaNRKTRPvjq99ET+kmqNZqWEeqzIoFDNOQlCbjQlcEfV0ezAY3XUjivNJF5Zg30cDyq5BK5+MxhGMN896uiQ4drsx813VB4jmHxa8L2H4fQ/LTwOpKA2tpq06ihvgNMl8ywzRTSLlkgkcj/TDD3Nmw97A/6+PM+VEXZhngSCDn8GKxd/wPr7SBRcxDbXtUGsmZ2bZRVUMZbDxXtG8LbVlFNa+syGK8QPNwK0tpnFNfYtaJAohQ4k12HRv1CY2A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Received: from AM0PR09MB4291.eurprd09.prod.outlook.com (2603:10a6:20b:168::15) by AM0PR09MB4465.eurprd09.prod.outlook.com (2603:10a6:20b:163::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.17; Tue, 19 Oct 2021 15:58:06 +0000 Received: from AM0PR09MB4291.eurprd09.prod.outlook.com ([fe80::68bc:fc3b:c24f:b76d]) by AM0PR09MB4291.eurprd09.prod.outlook.com ([fe80::68bc:fc3b:c24f:b76d%7]) with mapi id 15.20.4608.018; Tue, 19 Oct 2021 15:58:06 +0000 From: Alexander Christensen To: "gcc-help@gcc.gnu.org" Subject: C++20 module mapper Thread-Topic: C++20 module mapper Thread-Index: AQHXxQEjS5fACH3/mkSPAdkrXixRog== Date: Tue, 19 Oct 2021 15:58:06 +0000 Message-ID: Accept-Language: da-DK, en-US Content-Language: da-DK X-MS-Has-Attach: X-MS-TNEF-Correlator: suggested_attachment_session_id: c4893909-edb8-ea39-7d20-444daeae3606 x-tmn: [Co1EFm2oJ3GDKeHd//tQ0mOtMmfKzQ45] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 2702f25f-b601-48f1-ad59-08d993193db7 x-ms-traffictypediagnostic: AM0PR09MB4465: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: aVRSPckFiVQVSRNHbnEDW4TlBXWwZlkcu9616Zirl2ZqrjU8IMrFDjx1lqe3XwkQKDz31ODTZffEsmT3ARNuS2gh6jHa2HBRgMYARbcW23FhMse10W3tjkBpqpwVTobNc8UPY7Pa4F2Y+dUKkb6n6EltbnGsQgYWzx8hGQly+hzFccqWYJXWd8WebTEStJ9wEIYmMsmpTGXeA9IXX8oAKDr5h8LmKCwN8lfbLVz3irJ5dEBLOEQeQKgWgbkxfFb1XMJ8Dvyp0sSmq9K/wW+T8J9SyXfjKLXofwUSvyqmd5S8g265aCOs/fpl4y9UNNZ1gJRPe42jK0jvIlRjSFUmxwzVIems2UJmnFZj0oD6FpoO5HjOAc7QNdJHjEEupmcLCn6w0yoThmOXnG8DSoTtrUC7iVPY/daXwKgSso2JCkxBBUti1ahi5ETjIP08d+lFJ+AgG3BAV0gCo3i8wUKr4/jWZy/2XW0QxTelPdf+7tjDGHSLfRxQQe7vdDlWsNoNiWxVqrjok8Pnc9XUMDtO+pfc4+DU3RKNpJqF/yKOBXra3Bl9yNDDUfh+ECjyp7R02YDZFiUsyRTnPePWdhxzvA== x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: 01OW7QlUQaSVVSqjw4YUQ/Mr6TadhKu+0AiaD0NrZBpg2JsBb0FsM3rWTx9dNX0yVDCF6Gq8RxM9q4bZkF9Hl7q+lLLVYr/nWsHRY7dGvhWPrh4Z9bvCIRx6vAdqiqi+r26i1thX4CYl/6hUIS9RiQ== x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-OriginatorOrg: sct-15-20-3174-20-msonline-outlook-72e6e.templateTenant X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM0PR09MB4291.eurprd09.prod.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 2702f25f-b601-48f1-ad59-08d993193db7 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Oct 2021 15:58:06.7483 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR09MB4465 X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, HTML_MESSAGE, KAM_SHORT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Oct 2021 15:58:09 -0000 Hi, I hope I write to the right place. I would like to know how to use the module mapper, documented here https://= gcc.gnu.org/onlinedocs/gcc/C_002b_002b-Module-Mapper.html, to change the location of the expected gcm.cache directory. Given an exampl= e project layout: src/ Makefile project_1/ // .cpp source files Makefile project_2/ // .cpp source files Makefile Compiling from inside project_1 and project_2 folders does not work with th= e default module mapper, as gcc expects the module cache to be located in current working directory, which is a problem if project_2= references modules built in project_1. However, I can specify a module-mapping file. But I can't get it to work. What would be the correct syntax for such a file, located in project_2, to = override the default module cache to read from modules in src/gcm.cache/ and NOT src/project_2/gcm.cache/ ? This does not work: // module_mapping.txt '$root' ../gcm.cache/ And I do not want to prepend "cd .. && " to all build commands in src/proje= ct_2/Makefile. Sincerely, Alexander