tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

control_flow_guard.gni (878B)


      1 # Copyright 2020 The Chromium Authors
      2 # Use of this source code is governed by a BSD-style license that can be
      3 # found in the LICENSE file.
      4 
      5 import("//chromium/build/config/sanitizers/sanitizers.gni")
      6 
      7 declare_args() {
      8   # Set this to true to enable generation of CFG indirect call dispatch
      9   # guards.
     10   win_enable_cfg_guards = !is_debug && !is_asan
     11 }
     12 
     13 if (win_enable_cfg_guards) {
     14   # Control Flow Guard (CFG)
     15   # https://msdn.microsoft.com/en-us/library/windows/desktop/mt637065.aspx
     16   # /DYNAMICBASE (ASLR) is turned off in debug builds, therefore CFG can't be
     17   # turned on either.
     18   # ASan and CFG leads to slow process startup. Chromium's test runner uses
     19   # lots of child processes, so this means things are really slow. Disable CFG
     20   # for now. https://crbug.com/846966
     21   assert(!is_debug && !is_asan,
     22          "CFG does not work well in debug builds or with ASAN")
     23 }