• R
    Build files: Unify standard arguments for assembler generating scrips · 593d5c2f
    Richard Levitte 提交于
    - Make the last argument always be the output file.
    - Make the first argument always be the flavour, even if there is no
      flavour (i.e. it might become the empty string).
    - Make the next to last argument to be $(PROCESSOR) if that one has a
      value.
    - Remaining arguments are C prepropressor arguments.
    
    Perl scripts that should handle this may use the following code:
    
        $output = pop;
        $flavour = shift;
        if ($ARGV[$#ARGV] eq '386') {
            # Do 386 specific things
        } else {
            # Do whatever else, with the knowledge the @ARGV contains
            # C preprocessor arguments
        }
    
    Some scripts don't care about anything than $output, and that's ok.
    Some scripts do care, but handle it a little differently, and that's
    ok too (notably, the x86 scripts call asm_init() with the first and
    the last argument after having popped $output).
    As long as they handle the argument order right, they are going to
    be fine.
    Reviewed-by: NMatt Caswell <matt@openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/9884)
    593d5c2f
windows-makefile.tmpl 32.9 KB