Index: SConstruct |
=================================================================== |
--- SConstruct (revision 4288) |
+++ SConstruct (working copy) |
@@ -1009,7 +1009,6 @@ |
# Link the object files into a library. |
env.Replace(**context.flags['v8']) |
- env.Prepend(LIBS=[library_name]) |
context.ApplyEnvOverrides(env) |
if context.options['library'] == 'static': |
@@ -1044,7 +1043,9 @@ |
sample_env.Depends(sample_program, library) |
context.sample_targets.append(sample_program) |
- cctest_program = env.SConscript( |
+ cctest_env = env.Clone() |
+ cctest_env.Prepend(LIBS=[library_name]) |
+ cctest_program = cctest_env.SConscript( |
join('test', 'cctest', 'SConscript'), |
build_dir=join('obj', 'test', target_id), |
exports='context object_files', |