Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

Préprocesseur de gcc 3.3 et pragma set_debug_pwd

1 réponse
Avatar
thomas-ml
Dans les release notes de gcc 3.3, on peut lire :

The GCC 3.3 preprocessor inserts a new pragma, #pragma GCC
set_debug_pwd, as part of the new Distributed Builds feature. (See
below.) This may surprise tools and scripts that depended on the exact
form of preprocessed output from GCC. These scripts should be rewritten
to ignore unrecognized pragmas.

C'est très génant car il y a des projets qui pour se compiler utilisent
cpp pour générer un fichier qui n'a rien à voir avec du C. Y-a-t-il un
moyen de désactiver cette option ?

--
Thomas Deniau
"Unix is user friendly. It's just selective when choosing friends."

1 réponse

Avatar
thomas-ml
Thomas Deniau wrote:

Dans les release notes de gcc 3.3, on peut lire :

The GCC 3.3 preprocessor inserts a new pragma, #pragma GCC
set_debug_pwd, as part of the new Distributed Builds feature. (See
below.) This may surprise tools and scripts that depended on the exact
form of preprocessed output from GCC. These scripts should be rewritten
to ignore unrecognized pragmas.

C'est très génant car il y a des projets qui pour se compiler utilisent
cpp pour générer un fichier qui n'a rien à voir avec du C. Y-a-t-il un
moyen de désactiver cette option ?


Je me réponds à moi même : il faut utiliser "cpp3" au lieu de cpp.

--
Thomas Deniau
"Unix is user friendly. It's just selective when choosing friends."