Skip to content
This repository was archived by the owner on Apr 21, 2025. It is now read-only.

Conversation

@jason-simmons
Copy link
Member

Copy link
Member

@jmagman jmagman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On master on macOS:

/fml/platform/android/fml.scoped_java_ref.o && sed -i 's@/b/f/w@../..@g' obj/flutter/fml/platform/android/fml.scoped_java_ref.o.d
sed: 1: "obj/flutter/fml/platfor ...": invalid command code o

On this PR: success.

coverage_flags = "-fprofile-instr-generate -fcoverage-mapping"
}

if (host_os == "mac") {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-i'' that is, an empty string with no space after the -i should work on both, but maybe it's better to be explicit like this.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my local testing on macOS -i'' did not work.

It looked like it was being parsed as equivalent to -i, causing the next argument (the sed command) to be used as the backup file extension.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, maybe it only works with -e before the command to delineate the empty string from the command like: sed -i'' -e 's@/b/f/w@../..@g' $depfile.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried that originally but found that it was creating a backup file with the extension -e added to the filename

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hahaha. Okay. I'm glad you checked =)

@jason-simmons jason-simmons merged commit 0cb1087 into flutter:master Jan 5, 2024
@jmagman
Copy link
Member

jmagman commented Jan 6, 2024

New errors in roll:

ERROR at //build/toolchain/gcc_toolchain.gni:128:27: Assignment had no effect.
      sed_in_place_flag = "-i"

https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8759705668090838113/+/u/gn_--web_--runtime-mode_release_--no-goma_--no-lto/stdout

flutter/engine#49542

@jason-simmons
Copy link
Member Author

Fix for the unused variable error: #810

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants