https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123797

Nathaniel Shead <nshead at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nshead at gcc dot gnu.org

--- Comment #1 from Nathaniel Shead <nshead at gcc dot gnu.org> ---
Would you be able to share your exact build steps?  I've tried the following
and it seems to work as you expect:

$ cat mapper.txt
/home/wreien/.local/include/c++/16.0.1/string string.gcm
$ cat test.cpp
import <string>;
$ g++ -fmodule-mapper=mapper.txt -fmodules -xc++-system-header string
$ g++ -fmodule-mapper=mapper.txt -fmodules -E test.cpp -o test.ii
$ cat test.ii
# 0 "test.cpp"
# 0 "<built-in>"
# 0 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3
# 0 "<command-line>" 2
# 1 "test.cpp"
import "/home/wreien/.local/include/c++/16.0.1/string";
$ g++ -fmodule-mapper=mapper.txt -fmodules test.ii && echo OK
OK

Reply via email to