Skip to content

Commit

Permalink
add cf and spectre flags (#533)
Browse files Browse the repository at this point in the history
* add cf and spectre flags

* remove ExceptionHandling

* chore: remove duplicate declaration

* ci: update pipeline images

* chore: update node-gyp

* ci: update script execution

* Revert "ci: update script execution"

This reverts commit b5b6afe.

* Revert "chore: update node-gyp"

This reverts commit 9ee77a3.

* ci: revert to 2019 agent

Co-authored-by: deepak1556 <[email protected]>
  • Loading branch information
TylerLeonhardt and deepak1556 authored Mar 18, 2022
1 parent a858198 commit 1674722
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
4 changes: 2 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- job: macOS
pool:
vmImage: 'macOS-10.15'
vmImage: 'macOS-latest'
strategy:
matrix:
node_12_x:
Expand All @@ -54,7 +54,7 @@ jobs:
- job: Windows
pool:
vmImage: 'vs2017-win2016'
vmImage: 'windows-2019'
strategy:
matrix:
node_12_x:
Expand Down
23 changes: 21 additions & 2 deletions binding.gyp
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
{
'target_defaults': {
'conditions': [
['OS=="win"', {
'msvs_settings': {
'VCCLCompilerTool': {
'AdditionalOptions': [
'/Qspectre',
'/guard:cf'
]
},
'VCLinkerTool': {
'AdditionalOptions': [
'/guard:cf'
]
}
},
}],
],
},
'conditions': [
['OS=="win"', {
'targets': [
Expand All @@ -13,7 +32,7 @@
],
'libraries': [
'shlwapi.lib'
]
],
},
{
'target_name': 'conpty_console_list',
Expand All @@ -22,7 +41,7 @@
],
'sources' : [
'src/win/conpty_console_list.cc'
]
],
},
{
'target_name': 'pty',
Expand Down

0 comments on commit 1674722

Please sign in to comment.