Skip to content
Browse files
8256751: Incremental rebuild with precompiled header fails when touch…
…ing a header file

Backport-of: 19b2898691f945f0d6257e88ec74e291d5d7f277
  • Loading branch information
Yuri Nesterenko committed Apr 26, 2021
1 parent 6fb2ac2 commit 70230e226eacda38baf6d3304f5e0ec9fbbe2877
Showing 1 changed file with 3 additions and 1 deletion.
@@ -805,13 +805,15 @@ define SetupNativeCompilationBody
-include $$($1_PCH_DEPS_TARGETS_FILE)

$1_PCH_COMMAND := $$($1_CC) $$($1_CFLAGS) $$($1_EXTRA_CFLAGS) $$($1_SYSROOT_CFLAGS) \
$$($1_OPT_CFLAGS) -x c++-header -c $(C_FLAG_DEPS) $$($1_PCH_DEPS_FILE)
$$($1_OPT_CFLAGS) -x c++-header -c $(C_FLAG_DEPS) \
$$(addsuffix .tmp, $$($1_PCH_DEPS_FILE))

$$(call LogInfo, Generating precompiled header)
$$(call MakeDir, $$(@D))
$$(call ExecuteWithLog, $$@, $$(call MakeCommandRelative, \
$$($1_PCH_COMMAND) $$< -o $$@))
$$(call fix-deps-file, $$($1_PCH_DEPS_FILE))

1 comment on commit 70230e2

Copy link

@openjdk-notifier openjdk-notifier bot commented on 70230e2 Apr 26, 2021

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.