summaryrefslogtreecommitdiffstats
path: root/third_party
diff options
context:
space:
mode:
Diffstat (limited to 'third_party')
-rw-r--r--third_party/yasm/BUILD.gn9
1 files changed, 6 insertions, 3 deletions
diff --git a/third_party/yasm/BUILD.gn b/third_party/yasm/BUILD.gn
index 3463852..812be9a 100644
--- a/third_party/yasm/BUILD.gn
+++ b/third_party/yasm/BUILD.gn
@@ -121,6 +121,8 @@ if (current_toolchain == host_toolchain) {
# re2c is missing CLOSEVOP from one switch.
if (is_posix) {
cflags = [ "-Wno-switch" ]
+ } else if (is_win) {
+ cflags = [ "/wd4267" ] # size_t to int conversion.
}
}
@@ -254,7 +256,7 @@ if (current_toolchain == host_toolchain) {
outputs = [ "$target_gen_dir/{{source_name_part}}.c" ]
args = [
"{{source}}",
- rebase_path(target_gen_dir, ".") + "/{{source_name_part}}.c",
+ rebase_path(target_gen_dir, root_build_dir) + "/{{source_name_part}}.c",
]
deps = [
":generate_x86_insn"
@@ -278,7 +280,8 @@ if (current_toolchain == host_toolchain) {
outputs = [ "$yasm_gen_include_dir/{{source_name_part}}.c" ]
args = [
"{{source}}",
- rebase_path(yasm_gen_include_dir, ".") + "/{{source_name_part}}.c",
+ rebase_path(yasm_gen_include_dir, root_build_dir) +
+ "/{{source_name_part}}.c",
]
deps = [
":generate_x86_insn"
@@ -343,7 +346,7 @@ if (current_toolchain == host_toolchain) {
args = [
"-b",
"-o",
- rebase_path(target_gen_dir, ".") + "/{{source_name_part}}.c",
+ rebase_path(target_gen_dir, root_build_dir) + "/{{source_name_part}}.c",
"{{source}}",
]
}