bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#45934: native-comp - Dylib ID of ELN files not optimal


From: Alan Third
Subject: bug#45934: native-comp - Dylib ID of ELN files not optimal
Date: Sat, 7 Aug 2021 14:11:24 +0100

On Sat, Aug 07, 2021 at 12:25:02PM +0200, Lars Ingebrigtsen wrote:
> So...  it had no effect?  This was the patch I applied:

Looks like the function only takes one string at a time, so this seems
to work here:

@@ -4490,6 +4490,15 @@ DEFUN ("comp--compile-ctxt-to-file", 
Fcomp__compile_ctxt_to_file,
                                  GCC_JIT_INT_OPTION_OPTIMIZATION_LEVEL,
                                  comp.speed < 0 ? 0
                                  : (comp.speed > 3 ? 3 : comp.speed));
+
+  /* On MacOS set a unique dylib ID (Bug#45934). */
+#if defined (LIBGCCJIT_HAVE_gcc_jit_context_add_driver_option) \
+  && defined (DARWIN_OS)
+  gcc_jit_context_add_driver_option (comp.ctxt, "-install_name");
+  gcc_jit_context_add_driver_option (
+         comp.ctxt, SSDATA (Ffile_name_nondirectory (filename)));
+#endif
+
   comp.d_default_idx =
     CALL1I (comp-data-container-idx, CALL1I (comp-ctxt-d-default, Vcomp_ctxt));
   comp.d_impure_idx =

-- 
Alan Third





reply via email to

[Prev in Thread] Current Thread [Next in Thread]