Index: build/toolchain/win/BUILD.gn |
diff --git a/build/toolchain/win/BUILD.gn b/build/toolchain/win/BUILD.gn |
index 3e8cd35058fc5eec7056c071e5110bac195f9590..a9fab7c4c03c422f9384ea48ce19404879015be6 100644 |
--- a/build/toolchain/win/BUILD.gn |
+++ b/build/toolchain/win/BUILD.gn |
@@ -71,7 +71,9 @@ template("msvc_toolchain") { |
} |
tool("asm") { |
- command = "$python_path gyp-win-tool asm-wrapper $env ml.exe {{defines}} {{include_dirs}} /c /Fo {{output}} {{source}}" |
+ # TODO(brettw): "/safeseh" assembler argument is hardcoded here. Extract |
+ # assembler flags to a variable like cflags. crbug.com/418613 |
+ command = "$python_path gyp-win-tool asm-wrapper $env ml.exe {{defines}} {{include_dirs}} /safeseh /c /Fo {{output}} {{source}}" |
description = "ASM {{output}}" |
outputs = [ |
"{{source_out_dir}}/{{target_output_name}}.{{source_name_part}}.obj", |