diff --git a/src/basic/filesystem-sets.py b/src/basic/filesystem-sets.py index 7cf73aaefb..6520f45b89 100755 --- a/src/basic/filesystem-sets.py +++ b/src/basic/filesystem-sets.py @@ -282,6 +282,11 @@ def generate_fs_type_to_string(): #include #include "filesystems.h" +/* PROJECT_FILE, which is used by log_xyz() thus also used by assert_not_reached(), cannot be used in + * generated files, as the build directory may be outside of the source directory. */ +#undef PROJECT_FILE +#define PROJECT_FILE __FILE__ + const char* fs_type_to_string(statfs_f_type_t magic) { switch (magic) {""")