Index: site_scons/site_tools/component_builders.py |
=================================================================== |
--- site_scons/site_tools/component_builders.py (revision 5777) |
+++ site_scons/site_tools/component_builders.py (working copy) |
@@ -462,6 +462,14 @@ |
env['PROGRAM_BASENAME'] = prog_name |
+ if env['PROGSUFFIX'] and env.subst(prog_name).endswith(env['PROGSUFFIX']): |
+ # Temporary hack: If there's already an extension, remove it. |
+ # Because PPAPI is revision locked, and expects to be able to use .nexe |
+ # TODO: When PPAPI deps is rolled, replace with this: |
+ # raise Exception("Program name shouldn't have a suffix") |
+ prog_name = env.subst(prog_name) |
+ prog_name = prog_name[:-len(env['PROGSUFFIX'])] |
+ |
# Call env.Program() |
out_nodes = env.Program(prog_name, *args, **kwargs) |