Skip to content

Commit

Permalink
Set sb_is_evergreen=false for linux modular builds
Browse files Browse the repository at this point in the history
b/294230277

Change-Id: I00c3832e12f8bd012a34ec9b962e70e82cc85f99
  • Loading branch information
niranjanyardi committed Aug 10, 2023
1 parent 5455eca commit 7d8e74a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions starboard/build/config/BUILDCONFIG.gn
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ declare_args() {

using_old_compiler = false

is_modular_toolchain = false
build_with_separate_cobalt_toolchain = false
}

assert(!(is_starboard && is_native_target_build),
Expand Down Expand Up @@ -98,7 +98,7 @@ if (target_cpu == "x86" || target_cpu == "arm") {
}
host_toolchain = "//starboard/build/toolchain/$host_os:$_host_toolchain_cpu"

if (is_modular_toolchain) {
if (build_with_separate_cobalt_toolchain) {
# TODO(b/294450490): decide a way to set cobalt_toolchain for modular builds for all platforms.
# we'll need more conditionals for other platforms.
if (host_os == "win") {
Expand Down
5 changes: 3 additions & 2 deletions starboard/build/config/base_configuration.gni
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import("//starboard/build/config/enable_vr.gni")
# All build arguments in this file must have documentation.
# Please follow the formatting in this file when adding new ones.

if (is_modular_toolchain) {
if (build_with_separate_cobalt_toolchain) {
default_target_type = "shared_library"
} else {
default_target_type = "executable"
Expand Down Expand Up @@ -172,7 +172,8 @@ declare_args() {
v8_enable_webassembly = false
}

if (current_toolchain == starboard_toolchain && is_modular_toolchain) {
if (current_toolchain == starboard_toolchain &&
build_with_separate_cobalt_toolchain) {
declare_args() {
# Target-specific configurations for executable targets.
executable_configs =
Expand Down
2 changes: 1 addition & 1 deletion starboard/build/config/modular/helper_variables.gni
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

sb_is_modular = sb_is_evergreen || is_modular_toolchain
sb_is_modular = sb_is_evergreen || build_with_separate_cobalt_toolchain
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

import("//starboard/build/config/base_configuration.gni")

sb_is_evergreen = true
sb_is_evergreen = !build_with_separate_cobalt_toolchain

cobalt_font_package = "empty"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
# limitations under the License.

# TODO(b/294230277): Remove evergreen configs from linux modular builds
if (current_toolchain == default_toolchain && is_modular_toolchain) {
if (current_toolchain == default_toolchain &&
build_with_separate_cobalt_toolchain) {
import("//starboard/evergreen/x64/platform_configuration/configuration.gni")
platform_tests_path =
"//starboard/linux/shared:starboard_platform_tests($starboard_toolchain)"
Expand Down

0 comments on commit 7d8e74a

Please sign in to comment.