Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.
Permalink
Browse files
8256810: Incremental rebuild broken on Macosx
Backport-of: 4c86e46d75f6703aeab165df9c4068a76786d538
  • Loading branch information
Yuri Nesterenko committed Apr 26, 2021
1 parent 70230e2 commit 1295143
Showing 1 changed file with 8 additions and 3 deletions.
@@ -237,10 +237,15 @@ ifeq ($(ALLOW_ABSOLUTE_PATHS_IN_OUTPUT)-$(FILE_MACRO_CFLAGS), false-)
) \
)

# When compiling with relative paths, the deps file comes out with relative
# paths.
# When compiling with relative paths, the deps file may come out with relative
# paths, and that path may start with './'. First remove any leading ./, then
# add WORKSPACE_ROOT to any line not starting with /, while allowing for
# leading spaces.
define fix-deps-file
$(SED) -e 's|^\([ ]*\)|\1$(WORKSPACE_ROOT)|' $1.tmp > $1
$(SED) \
-e 's|^\([ ]*\)\./|\1|' \
-e '/^[ ]*[^/ ]/s|^\([ ]*\)|\1$(WORKSPACE_ROOT)/|' \
$1.tmp > $1
endef
else
# By default the MakeCommandRelative macro does nothing.

1 comment on commit 1295143

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

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

Please sign in to comment.