equal
deleted
inserted
replaced
147 # need this special handling. |
147 # need this special handling. |
148 PCH_FLAG/loopTransform.o = $(PCH_FLAG/NO_PCH) |
148 PCH_FLAG/loopTransform.o = $(PCH_FLAG/NO_PCH) |
149 PCH_FLAG/sharedRuntimeTrig.o = $(PCH_FLAG/NO_PCH) |
149 PCH_FLAG/sharedRuntimeTrig.o = $(PCH_FLAG/NO_PCH) |
150 PCH_FLAG/sharedRuntimeTrans.o = $(PCH_FLAG/NO_PCH) |
150 PCH_FLAG/sharedRuntimeTrans.o = $(PCH_FLAG/NO_PCH) |
151 PCH_FLAG/unsafe.o = $(PCH_FLAG/NO_PCH) |
151 PCH_FLAG/unsafe.o = $(PCH_FLAG/NO_PCH) |
|
152 PCH_FLAG/jvmciCompilerToVM.o = $(PCH_FLAG/NO_PCH) |
152 |
153 |
153 endif |
154 endif |
154 else # ($(USE_CLANG), true) |
155 else # ($(USE_CLANG), true) |
155 # check for precompiled headers support |
156 # check for precompiled headers support |
156 ifneq "$(shell expr \( $(CC_VER_MAJOR) \> 3 \) \| \( \( $(CC_VER_MAJOR) = 3 \) \& \( $(CC_VER_MINOR) \>= 4 \) \))" "0" |
157 ifneq "$(shell expr \( $(CC_VER_MAJOR) \> 3 \) \| \( \( $(CC_VER_MAJOR) = 3 \) \& \( $(CC_VER_MINOR) \>= 4 \) \))" "0" |
318 OPT_CFLAGS += -fno-expensive-optimizations |
319 OPT_CFLAGS += -fno-expensive-optimizations |
319 endif |
320 endif |
320 |
321 |
321 # Work around some compiler bugs. |
322 # Work around some compiler bugs. |
322 ifeq ($(USE_CLANG), true) |
323 ifeq ($(USE_CLANG), true) |
323 # Clang <= 6.1 |
324 # Clang < 6 | <= 6.1 | <= 7.0 |
324 ifeq ($(shell expr \ |
325 ifeq ($(shell expr \ |
325 $(CC_VER_MAJOR) \< 6 \| \ |
326 $(CC_VER_MAJOR) \< 6 \| \ |
326 \( $(CC_VER_MAJOR) = 6 \& $(CC_VER_MINOR) \<= 1 \) \ |
327 \( $(CC_VER_MAJOR) = 6 \& $(CC_VER_MINOR) \<= 1 \) \| \ |
|
328 \( $(CC_VER_MAJOR) = 7 \& $(CC_VER_MINOR) \<= 0 \) \ |
327 ), 1) |
329 ), 1) |
328 OPT_CFLAGS/loopTransform.o += $(OPT_CFLAGS/NOOPT) |
330 OPT_CFLAGS/loopTransform.o += $(OPT_CFLAGS/NOOPT) |
329 OPT_CFLAGS/unsafe.o += -O1 |
331 OPT_CFLAGS/unsafe.o += -O1 |
330 else |
332 else |
331 $(error "Update compiler workarounds for Clang $(CC_VER_MAJOR).$(CC_VER_MINOR)") |
333 $(error "Update compiler workarounds for Clang $(CC_VER_MAJOR).$(CC_VER_MINOR)") |