gegl: reject paths containing .dSYM when looking for modules on OSX

This removes a lot of warnings when a debug build of gegl/ is run with
GIMP, fixing issue #112.
parent 4db18505
Pipeline #186393 passed with stages
in 16 minutes and 25 seconds
......@@ -308,7 +308,8 @@ valid_module_name (const gchar *filename)
}
}
#ifdef __APPLE__ /* G_MODULE_SUFFIX is defined to .so instead of .dylib */
if (! gegl_datafiles_check_extension (basename, ".dylib" ))
if (! gegl_datafiles_check_extension (basename, ".dylib" ) ||
strstr (filename, ".dSYM"))
#else
if (! gegl_datafiles_check_extension (basename, "." G_MODULE_SUFFIX))
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment