diff --git a/BUILD.gn b/BUILD.gn index 0cd1ce1e36..8dac46da8e 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -1149,7 +1149,7 @@ template("run_mksnapshot") { # target toolchains. The same host binary is used to generate both, so # mksnapshot needs to know which target OS to use at runtime. It's weird, # but the target OS is really |current_os|. - "--ebt_os=$current_os", + "--target_os=$current_os", ] args += invoker.args diff --git a/src/flag-definitions.h b/src/flag-definitions.h index 560d645b84..ba7c328b6f 100644 --- a/src/flag-definitions.h +++ b/src/flag-definitions.h @@ -1169,7 +1169,7 @@ DEFINE_STRING(startup_src, nullptr, "Write V8 startup as C++ src. (mksnapshot only)") DEFINE_STRING(startup_blob, nullptr, "Write V8 startup blob file. (mksnapshot only)") -DEFINE_STRING(ebt_os, nullptr, "EBT target OS. (mksnapshot only)") +DEFINE_STRING(target_os, nullptr, "The mksnapshot target os. (mksnapshot only)") // // Minor mark compact collector flags. diff --git a/src/snapshot/embedded-file-writer.cc b/src/snapshot/embedded-file-writer.cc index 4266d798c4..191ebf7b7c 100644 --- a/src/snapshot/embedded-file-writer.cc +++ b/src/snapshot/embedded-file-writer.cc @@ -692,7 +692,7 @@ void PlatformDependentEmbeddedFileWriter::SectionData() { } void PlatformDependentEmbeddedFileWriter::SectionRoData() { - if (i::FLAG_ebt_os == std::string("win")) + if (i::FLAG_target_os == std::string("win")) fprintf(fp_, ".section .rdata\n"); else fprintf(fp_, ".section .rodata\n"); @@ -778,7 +778,7 @@ void PlatformDependentEmbeddedFileWriter::DeclareFunctionBegin( const char* name) { DeclareLabel(name); - if (i::FLAG_ebt_os == std::string("win")) { + if (i::FLAG_target_os == std::string("win")) { #if defined(V8_TARGET_ARCH_ARM64) // Windows ARM64 assembly is in GAS syntax, but ".type" is invalid directive // in PE/COFF for Windows.