[Mesa-dev] [PATCH] scons: Don't build the assembly sources on Mac OS X.

Jose Fonseca jfonseca at vmware.com
Wed Feb 22 04:01:55 PST 2012


Looks good. It doesn't look like the makefiles build assembly on MacOSX neither.

Jose

----- Original Message -----
> This patch allows the Mac OS X SCons build to complete. The assembly
> sources contain psuedo-ops that not are supported on Mac OS X.
> 
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
> ---
>  src/mapi/glapi/SConscript |    2 +-
>  src/mesa/SConscript       |    2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/mapi/glapi/SConscript b/src/mapi/glapi/SConscript
> index 9882806..4097a7f 100644
> --- a/src/mapi/glapi/SConscript
> +++ b/src/mapi/glapi/SConscript
> @@ -46,7 +46,7 @@ for s in mapi_sources:
>  #
>  # Assembly sources
>  #
> -if env['gcc'] and env['platform'] != 'windows':
> +if env['gcc'] and env['platform'] not in ('darwin', 'windows'):
>      if env['machine'] == 'x86':
>          env.Append(CPPDEFINES = [
>              'USE_X86_ASM',
> diff --git a/src/mesa/SConscript b/src/mesa/SConscript
> index e9b1f6a..10a0468 100644
> --- a/src/mesa/SConscript
> +++ b/src/mesa/SConscript
> @@ -384,7 +384,7 @@ if env['gles']:
>  #
>  # Assembly sources
>  #
> -if env['gcc'] and env['platform'] != 'windows':
> +if env['gcc'] and env['platform'] not in ('darwin', 'windows'):
>      if env['machine'] == 'x86':
>          env.Append(CPPDEFINES = [
>              'USE_X86_ASM',
> --
> 1.7.8.4
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
> 


More information about the mesa-dev mailing list