
import sys


def get_output_dir(target_arch, component):
  # Build in "out_component" for component build.
  output_dir = 'out'
  if component == 'shared_library':
    output_dir += '_component'

  # Build in "out_32" for 32bit target.
  if target_arch == 'ia32':
    output_dir += '_32'
  return output_dir


def get_configuration(target_arch):
  config = 'Release'
  if target_arch == 'x64' and sys.platform in ['win32', 'cygwin']:
    config += '_x64'
  return config


import sys


def get_output_dir(target_arch, component):
  # Build in "out_component" for component build.
  output_dir = 'out'
  if component == 'shared_library':
    output_dir += '_component'

  # Build in "out_32" for 32bit target.
  if target_arch == 'ia32':
    output_dir += '_32'
  elif target_arch == 'arm':
    output_dir += '_arm'
  return output_dir


def get_configuration(target_arch):
  config = 'Release'
  if target_arch == 'x64' and sys.platform in ['win32', 'cygwin']:
    config += '_x64'
  return config

Fix output dir for arm target
Fix output dir for arm target

  
  import sys
  
  
  def get_output_dir(target_arch, component):
    # Build in "out_component" for component build.
    output_dir = 'out'
    if component == 'shared_library':
      output_dir += '_component'
  
    # Build in "out_32" for 32bit target.
    if target_arch == 'ia32':
      output_dir += '_32'
+   elif target_arch == 'arm':
+     output_dir += '_arm'
    return output_dir
  
  
  def get_configuration(target_arch):
    config = 'Release'
    if target_arch == 'x64' and sys.platform in ['win32', 'cygwin']:
      config += '_x64'
    return config
  
Fix output dir for arm target
## Code Before:

import sys


def get_output_dir(target_arch, component):
  # Build in "out_component" for component build.
  output_dir = 'out'
  if component == 'shared_library':
    output_dir += '_component'

  # Build in "out_32" for 32bit target.
  if target_arch == 'ia32':
    output_dir += '_32'
  return output_dir


def get_configuration(target_arch):
  config = 'Release'
  if target_arch == 'x64' and sys.platform in ['win32', 'cygwin']:
    config += '_x64'
  return config

## Instruction:
Fix output dir for arm target
## Code After:

import sys


def get_output_dir(target_arch, component):
  # Build in "out_component" for component build.
  output_dir = 'out'
  if component == 'shared_library':
    output_dir += '_component'

  # Build in "out_32" for 32bit target.
  if target_arch == 'ia32':
    output_dir += '_32'
  elif target_arch == 'arm':
    output_dir += '_arm'
  return output_dir


def get_configuration(target_arch):
  config = 'Release'
  if target_arch == 'x64' and sys.platform in ['win32', 'cygwin']:
    config += '_x64'
  return config
