diff --git a/.bazelrc b/.bazelrc index 15e4a5494c..e55a53e203 100644 --- a/.bazelrc +++ b/.bazelrc @@ -5,4 +5,5 @@ build --macos_minimum_os=12.0 --host_macos_minimum_os=12.0 build --disk_cache=~/.bazel_cache build:release \ - --compilation_mode=opt + --compilation_mode=opt \ + --features=swift.opt_uses_wmo diff --git a/Dangerfile b/Dangerfile index 55e279a23b..2a40eabbb6 100644 --- a/Dangerfile +++ b/Dangerfile @@ -16,7 +16,7 @@ has_app_changes = !modified_files.grep(/Source/).empty? has_test_changes = !modified_files.grep(/Tests/).empty? has_danger_changes = !modified_files.grep(/Dangerfile|script\/oss-check|Gemfile/).empty? has_package_changes = !modified_files.grep(/Package\.swift/).empty? -has_bazel_changes = !modified_files.grep(/WORKSPACE|bazel\/|BUILD/).empty? +has_bazel_changes = !modified_files.grep(/\.bazelrc|WORKSPACE|bazel\/|BUILD/).empty? # Add a CHANGELOG entry for app changes if !modified_files.include?('CHANGELOG.md') && has_app_changes diff --git a/tools/oss-check b/tools/oss-check index 5566d39a3d..71b9fe445e 100755 --- a/tools/oss-check +++ b/tools/oss-check @@ -208,7 +208,7 @@ def build(branch) perform("git worktree add --detach #{dir} #{target}") end - build_command = "cd #{dir}; bazel build -c opt @SwiftLint//:swiftlint && mv bazel-bin/swiftlint swiftlint-#{branch}" + build_command = "cd #{dir}; bazel build --config=release @SwiftLint//:swiftlint && mv bazel-bin/swiftlint swiftlint-#{branch}" perform(build_command) return if $?.success?