mirror of
https://github.com/openjdk/jdk.git
synced 2026-07-28 11:53:09 +00:00
8141416: "expr: syntax error" due to gcc -dumpversion excluding micro
Reviewed-by: erikj, stuefe
This commit is contained in:
parent
a38ea495d6
commit
5bef4db912
@ -61,6 +61,11 @@ else
|
||||
CC_VER_MAJOR := $(shell $(CC) -dumpversion | sed 's/egcs-//' | cut -d'.' -f1)
|
||||
CC_VER_MINOR := $(shell $(CC) -dumpversion | sed 's/egcs-//' | cut -d'.' -f2)
|
||||
CC_VER_MICRO := $(shell $(CC) -dumpversion | sed 's/egcs-//' | cut -d'.' -f3)
|
||||
# Workaround Ubuntu bug where -dumpversion doesn't print a micro version
|
||||
# https://bugs.launchpad.net/ubuntu/+source/gcc-4.8/+bug/1360404
|
||||
ifeq ($(CC_VER_MICRO),)
|
||||
CC_VER_MICRO := "0"
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(USE_CLANG), true)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user