
    <hG                        % S SK Jr   S SKrS SKrSSKJr  \R                  (       a  SSKJ	r	  SSK
Jr  SSKJr  O\r/ S/S	/S
/S/S/S/S.rS\S'   / S/S.rS\S'    " S S\5      rg)    )annotationsN   )EnvironmentException)MachineInfo)Environment)Compilerz-O0-Ooffz-O1z-O2z-O3z-O4)plain0g123szT.Dict[str, T.List[str]]ti_optimization_argsz-g)FTzT.Dict[bool, T.List[str]]ti_debug_argsc                      \ rS rSrSrSS jrSS jrSS jrSS jrSS jr	SS jr
SS	 jrSS
 jrSS jrSS jrSS jrSS jrSS jrSS jrSS jr\S S j5       rS!S jrS"S jrSrg)#
TICompiler(   tic                    U R                   (       d  [        S5      eU R                  R                  S5        U R                  R                  S5        / n/ UU/ -   U/ -   U/ -   S.U l        g )Nz,TI compilers only support cross-compilation.asmcla)r   r   r   r   
everything)is_crossr   can_compile_suffixesadd	warn_args)selfdefault_warn_argss     /mnt/mint/home/seanl/mnt/public/Repos/ladybird/Build/vcpkg/downloads/tools/meson-1.9.0-d1fcc2/mesonbuild/compilers/mixins/ti.py__init__TICompiler.__init__,   sj    }}&'UVV!!%%e,!!%%e,)+""R'"R'+b042    c                    / $ N r   s    r!   get_pic_argsTICompiler.get_pic_args;   s	     	r$   c                    g)Npchr'   r(   s    r!   get_pch_suffixTICompiler.get_pch_suffix@   s    r$   c                    / $ r&   r'   )r   pch_dirheaders      r!   get_pch_use_argsTICompiler.get_pch_use_argsC       	r$   c                    / $ r&   r'   )r   envs     r!   thread_flagsTICompiler.thread_flagsF   r4   r$   c                    / $ r&   r'   r(   s    r!   get_coverage_argsTICompiler.get_coverage_argsI   r4   r$   c                    / $ r&   r'   r(   s    r!   get_no_stdinc_argsTICompiler.get_no_stdinc_argsL   r4   r$   c                    / $ r&   r'   r(   s    r!   get_no_stdlib_link_args"TICompiler.get_no_stdlib_link_argsO   r4   r$   c                    [         U   $ r&   )r   )r   optimization_levels     r!   get_optimization_args TICompiler.get_optimization_argsR   s    #$677r$   c                    [         U   $ r&   )r   )r   is_debugs     r!   get_debug_argsTICompiler.get_debug_argsU   s    X&&r$   c                    / $ r&   r'   r(   s    r!   get_compile_only_args TICompiler.get_compile_only_argsX   r4   r$   c                    S/$ )Nr	   r'   r(   s    r!   get_no_optimization_args#TICompiler.get_no_optimization_args[   s
    yr$   c                    SU 3/$ )Nz--output_file=r'   )r   
outputnames     r!   get_output_argsTICompiler.get_output_args^   s     -..r$   c                    S/$ )Nz--emit_warnings_as_errorsr'   r(   s    r!   get_werror_argsTICompiler.get_werror_argsa   s    +,,r$   c                    US:X  a  SnSU-   /$ )N .z-I=r'   )r   path	is_systems      r!   get_include_argsTICompiler.get_include_argsd   s    2:D~r$   c                    / nU Hj  nUR                  S5      (       a  SUSS  -   nUR                  S5      (       a  M9  US:X  a  MA  UR                  S5      (       a  MY  UR                  U5        Ml     U$ )Nz-Dz	--define=   z-Wl,-rpath=z--print-search-dirsz-L)
startswithappend)clsargsinforesultis        r!   _unix_args_to_nativeTICompiler._unix_args_to_nativei   ss     A||D!!!AB%'||M**++d##MM!  r$   c           
     r   [        U5       H  u  p4US S S:X  aG  US S [        R                  R                  [        R                  R	                  X$SS  5      5      -   X'   US S S:X  d  M`  US S [        R                  R                  [        R                  R	                  X$SS  5      5      -   X'   M     U$ )N   z--include_path=r_   z-I)	enumerateosrZ   normpathjoin)r   parameter_list	build_diridxrf   s        r!   &compute_parameters_with_absolute_paths1TICompiler.compute_parameters_with_absolute_pathsx   s    /FC"v**&'frww/?/?YZ\Z]X^@_/`&`#!u}&'ebgg.>.>rww||IYZY[W\?].^&^#	 0 r$   c                    SSU 3/$ )Nz--preproc_with_compilez--preproc_dependency=r'   )r   	outtargetoutfiles      r!   get_dependency_gen_args"TICompiler.get_dependency_gen_args   s    (,A'*KLLr$   )r   N)returnNone)ry   T.List[str])ry   str)r0   r|   r1   r|   ry   r{   )r6   z'Environment'ry   r{   )rC   r|   ry   r{   )rG   boolry   r{   )rQ   r|   ry   r{   )rZ   r|   r[   r}   ry   r{   )rc   r{   rd   r   ry   r{   )ro   r{   rp   r|   ry   r{   )ru   r|   rv   r|   ry   r{   )__name__
__module____qualname____firstlineno__idr"   r)   r-   r2   r7   r:   r=   r@   rD   rH   rK   rN   rR   rU   r\   classmethodrg   rr   rw   __static_attributes__r'   r$   r!   r   r   (   sq    	B2
8'/-
  Mr$   r   )
__future__r   rl   typingTmesonlibr   TYPE_CHECKING	envconfigr   environmentr   compilers.compilersr   objectr   __annotations__r   r   r'   r$   r!   <module>r      s    # H 	  ,??(*/ H 





2 .  &,( ZM ZMr$   