[mono/mono] 994466e0: [aot] Use clang as the assembler on osx.

"Zoltan Varga ([email protected])" <[email protected]> Mon, 11 Nov 2013 05:56:11 +0000
Newsgroups gmane.comp.gnome.mono.patches
Message-ID <0000014245bb4b67-3f9f1239-b7ec-4c58-957e-12ebb15a7da1-000000@email.amazonses.com>
   Branch: refs/heads/master
     Home: https://github.com/mono/mono
  Compare: https://github.com/mono/mono/compare/2eb34b1a690c...994466e0e6a6

   Commit: 994466e0e6a66cf5a3f1014e00c6ab48ff9daec3
   Author: Zoltan Varga <[email protected]> (vargaz)
     Date: 2013-11-11 05:54:34 GMT
      URL: https://github.com/mono/mono/commit/994466e0e6a66cf5a3f1014e00c6ab48ff9daec3

[aot] Use clang as the assembler on osx.

Changed paths:
  M mono/mini/aot-compiler.c

Modified: mono/mini/aot-compiler.c
===================================================================
@@ -8398,6 +8398,8 @@ struct _ReadOnlyValue {
 #else
 #define AS_NAME "nacl-as"
 #endif
+#elif defined(TARGET_OSX)
+#define AS_NAME "clang -c -x assembler"
 #else
 #define AS_NAME "as"
 #endif
@@ -8452,11 +8454,11 @@ struct _ReadOnlyValue {
 #elif defined(__ppc__) && defined(TARGET_MACH)
 	command = g_strdup_printf ("gcc -dynamiclib -o %s %s.o", tmp_outfile_name, acfg->tmpfname);
 #elif defined(TARGET_AMD64) && defined(TARGET_MACH)
-	command = g_strdup_printf ("gcc --shared -o %s %s.o", tmp_outfile_name, acfg->tmpfname);
+	command = g_strdup_printf ("clang --shared -o %s %s.o", tmp_outfile_name, acfg->tmpfname);
 #elif defined(HOST_WIN32)
 	command = g_strdup_printf ("gcc -shared --dll -o %s %s.o", tmp_outfile_name, acfg->tmpfname);
 #elif defined(TARGET_X86) && defined(TARGET_MACH) && !defined(__native_client_codegen__)
-	command = g_strdup_printf ("gcc -m32 -dynamiclib -o %s %s.o", tmp_outfile_name, acfg->tmpfname);
+	command = g_strdup_printf ("clang -m32 -dynamiclib -o %s %s.o", tmp_outfile_name, acfg->tmpfname);
 #else
 	command = g_strdup_printf ("%sld %s %s -shared -o %s %s.o", tool_prefix, EH_LD_OPTIONS, LD_OPTIONS, tmp_outfile_name, acfg->tmpfname);
 #endif


_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches