<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def compiler_args(self, target):
 """Returns the compiler_args used for Thrift generation. :param target: The target to extract the compiler args from. :type target: :class:`pants.backend.codegen.targets.java_thrift_library.JavaThriftLibrary` :returns: Extra arguments for the thrift compiler :rtype: list """

    self._check_target(target)
    return target.compiler_args or self._default_compiler_args