mirror of
https://github.com/openssl/openssl.git
synced 2024-12-09 05:51:54 +08:00
abe256e795
With the support of "make variables" comes the possibility for the user to override them. However, we need to make a difference between defaults that we use (and that should be overridable by the user) and flags that are crucial for building OpenSSL (should not be overridable). Typically, overridable flags are those setting optimization levels, warnings levels, that kind of thing, while non-overridable flags are, for example, macros that indicate aspects of how the config target should be treated, such as L_ENDIAN and B_ENDIAN. We do that differentiation by allowing upper case attributes in the config targets, named exactly like the "make variables" we support, and reserving the lower case attributes for non-overridable project flags. Reviewed-by: Andy Polyakov <appro@openssl.org> (Merged from https://github.com/openssl/openssl/pull/5534)
24 lines
1.1 KiB
Plaintext
24 lines
1.1 KiB
Plaintext
# We can't make commitment to supporting Microsoft assembler,
|
|
# because it would mean supporting all masm versions. This in
|
|
# in turn is because masm is not really an interchangeable option,
|
|
# while users tend to have reasons to stick with specific Visual
|
|
# Studio versions. It's usually lesser hassle to make it work
|
|
# with latest assembler, but tweaking for older versions had
|
|
# proven to be daunting task. This is experimental target, for
|
|
# production builds stick with [up-to-date version of] nasm.
|
|
|
|
my %targets = (
|
|
"VC-WIN64A-masm" => {
|
|
inherit_from => [ "VC-WIN64-common", asm("x86_64_asm"),
|
|
sub { $disabled{shared} ? () : "x86_64_uplink" } ],
|
|
AS => "ml64",
|
|
ASFLAGS => "/nologo /Zi",
|
|
asoutflag => "/Fo",
|
|
asflags => "/c /Cp /Cx",
|
|
sys_id => "WIN64A",
|
|
bn_asm_src => sub { return undef unless @_;
|
|
my $r=join(" ",@_); $r=~s|asm/x86_64-gcc|bn_asm|; $r; },
|
|
perlasm_scheme => "masm",
|
|
},
|
|
);
|