From 0d03b5f16276ca7553d47705bcef32c8aded936b Mon Sep 17 00:00:00 2001 From: Jonathan Tinkham Date: Sat, 10 Feb 2018 20:48:46 -0700 Subject: [PATCH] Add and use mono build variables with cloned environment. (cherry picked from commit 70d281b94685c2ce6273125efa1babd1e4cfd4dc) --- modules/mono/SCsub | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/mono/SCsub b/modules/mono/SCsub index 320bbe7090f..aa8626e6da6 100644 --- a/modules/mono/SCsub +++ b/modules/mono/SCsub @@ -57,10 +57,10 @@ if env['tools']: vars = Variables() vars.Add(BoolVariable('mono_glue', 'Build with the mono glue sources', True)) vars.Add(BoolVariable('xbuild_fallback', 'If MSBuild is not found, fallback to xbuild', False)) -vars.Update(env) +vars.Update(env_mono) # Glue sources -if env['mono_glue']: +if env_mono['mono_glue']: env_mono.add_source_files(env.modules_sources, 'glue/*.cpp') else: env_mono.Append(CPPDEFINES=['MONO_GLUE_DISABLED'])