code_generator = Builder(action='$CC $CCFLAGS -S $SOURCE -o $TARGET',
    single_source=1, suffix='.s')
env.Replace(CC='clang')
env.Append(BUILDERS={'CodeGenerator': code_generator})
Configuring SCons to use separate tools for code generation and assembly