Re: [PATCH v2] libcpp: Avoid remapping filenames within directives

2022-11-18 Thread Jeff Law via Gcc-patches
On 11/2/22 04:47, Richard Purdie via Gcc-patches wrote: Code such as: #include __FILE__ can interact poorly with the *-prefix-map options when cross compiling. In general you're after to remap filenames for use in target context but the local paths should be used to find include files at co

[PATCH v2] libcpp: Avoid remapping filenames within directives

2022-11-02 Thread Richard Purdie via Gcc-patches
Code such as: #include __FILE__ can interact poorly with the *-prefix-map options when cross compiling. In general you're after to remap filenames for use in target context but the local paths should be used to find include files at compile time. Ingoring filename remapping for directives allows