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/D7996

--HG--
extra : amend_source : d37cf7adc522337f69773ac69baa5d5faf1188bc
  • Loading branch information
franziskuskiefer committed Oct 8, 2018
1 parent 4a9f579 commit 8876b4f
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" 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 8876b4f

Please sign in to comment.