After [8288396: Always create reproducible 
builds](https://github.com/openjdk/jdk/commit/b4ab5fe1daf22a543e1bd973bcd34322360054b4),
 `abstract_vm_version.cpp` uses `HOTSPOT_BUILD_TIME` instead of `__DATE__` and 
`__TIME__`.

However, `abstract_vm_version.o` still depends on the other `libjvm` target 
dependencies. This can cause it to be rebuilt when an unrelated HotSpot source 
file is changed. This dependency is no longer needed.

Testing:
- Touched `src/hotspot/share/runtime/arguments.cpp` and rebuilt with 
`LOG=debug`.
- `arguments.cpp` was recompiled, but no compile command for 
`abstract_vm_version.cpp` was generated.

---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

-------------

Commit messages:
 - 8369182: Don't force recompile of abstract_vm_version.cpp

Changes: https://git.openjdk.org/jdk/pull/32505/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=32505&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8369182
  Stats: 7 lines in 1 file changed: 0 ins; 7 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/32505.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/32505/head:pull/32505

PR: https://git.openjdk.org/jdk/pull/32505

Reply via email to