Skip to content

Commit

Permalink
Bug 1471566 - fix OSS fuzzing build, r=mt
Browse files Browse the repository at this point in the history
Differential Revision: https://phabricator.services.mozilla.com/D9493

--HG--
extra : rebase_source : 8ab94ca28674a0035899884f2a464cc78a852fbb
extra : histedit_source : b25d3af9f2b22575516d3745036c910fb2938744%2Ce360a908494a9bb1f92037978e082b36ee170d4b
  • Loading branch information
franziskuskiefer committed Oct 8, 2018
1 parent e533ed6 commit 3de11df
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 5 deletions.
35 changes: 33 additions & 2 deletions lib/freebl/freebl.gyp
Expand Up @@ -6,6 +6,30 @@
'../../coreconf/config.gypi'
],
'targets': [
{
'target_name': 'intel-gcm-s_lib',
'type': 'static_library',
'sources': [
'intel-aes.s',
'intel-gcm.s',
],
'dependencies': [
'<(DEPTH)/exports.gyp:nss_exports'
],
'conditions': [
[ 'cc_is_clang==1', {
'cflags': [
'-no-integrated-as',
],
'cflags_mozilla': [
'-no-integrated-as',
],
'asflags_mozilla': [
'-no-integrated-as',
],
}],
],
},
{
'target_name': 'intel-gcm-wrap_c_lib',
'type': 'static_library',
Expand All @@ -15,12 +39,19 @@
'dependencies': [
'<(DEPTH)/exports.gyp:nss_exports'
],
'conditions': [
[ '(OS=="linux" or OS=="android") and target_arch=="x64"', {
'dependencies': [
'intel-gcm-s_lib',
],
}],
],
'cflags': [
'-mssse3'
'-mssse3',
],
'cflags_mozilla': [
'-mssse3'
]
],
},
{
# TODO: make this so that all hardware accelerated code is in here.
Expand Down
4 changes: 1 addition & 3 deletions lib/freebl/freebl_base.gypi
Expand Up @@ -67,14 +67,12 @@
[ 'target_arch=="x64"', {
'sources': [
'arcfour-amd64-gas.s',
'intel-aes.s',
'intel-gcm.s',
'mpi/mpi_amd64.c',
'mpi/mpi_amd64_gas.s',
'mpi/mp_comba.c',
],
'conditions': [
[ 'cc_is_clang==1', {
[ 'cc_is_clang==1 and fuzz!=1', {
'cflags': [
'-no-integrated-as',
],
Expand Down

0 comments on commit 3de11df

Please sign in to comment.