132 VM_PCH_FLAG/AOUT =
133 VM_PCH_FLAG = $(VM_PCH_FLAG/$(LINK_INTO))
134
135 # We only use precompiled headers for the JVM build
136 CFLAGS += $(VM_PCH_FLAG)
137
138 # The following files are compiled at various optimization
139 # levels due to optimization issues encountered at the
140 # 'OPT_CFLAGS_DEFAULT' level. The Clang compiler issues a compile
141 # time error if there is an optimization level specification
142 # skew between the PCH file and the C++ file. Especially if the
143 # PCH file is compiled at a higher optimization level than
144 # the C++ file. One solution might be to prepare extra optimization
145 # level specific PCH files for the opt build and use them here, but
146 # it's probably not worth the effort as long as only a few files
147 # need this special handling.
148 PCH_FLAG/loopTransform.o = $(PCH_FLAG/NO_PCH)
149 PCH_FLAG/sharedRuntimeTrig.o = $(PCH_FLAG/NO_PCH)
150 PCH_FLAG/sharedRuntimeTrans.o = $(PCH_FLAG/NO_PCH)
151 PCH_FLAG/unsafe.o = $(PCH_FLAG/NO_PCH)
152
153 endif
154 else # ($(USE_CLANG), true)
155 # check for precompiled headers support
156 ifneq "$(shell expr \( $(CC_VER_MAJOR) \> 3 \) \| \( \( $(CC_VER_MAJOR) = 3 \) \& \( $(CC_VER_MINOR) \>= 4 \) \))" "0"
157 # Allow the user to turn off precompiled headers from the command line.
158 ifneq ($(USE_PRECOMPILED_HEADER),0)
159 PRECOMPILED_HEADER_DIR=.
160 PRECOMPILED_HEADER_SRC=$(GAMMADIR)/src/share/vm/precompiled/precompiled.hpp
161 PRECOMPILED_HEADER=$(PRECOMPILED_HEADER_DIR)/precompiled.hpp.gch
162 endif
163 endif
164 endif
165
166 # -DDONT_USE_PRECOMPILED_HEADER will exclude all includes in precompiled.hpp.
167 ifeq ($(USE_PRECOMPILED_HEADER),0)
168 CFLAGS += -DDONT_USE_PRECOMPILED_HEADER
169 endif
170
171 #------------------------------------------------------------------------
|
132 VM_PCH_FLAG/AOUT =
133 VM_PCH_FLAG = $(VM_PCH_FLAG/$(LINK_INTO))
134
135 # We only use precompiled headers for the JVM build
136 CFLAGS += $(VM_PCH_FLAG)
137
138 # The following files are compiled at various optimization
139 # levels due to optimization issues encountered at the
140 # 'OPT_CFLAGS_DEFAULT' level. The Clang compiler issues a compile
141 # time error if there is an optimization level specification
142 # skew between the PCH file and the C++ file. Especially if the
143 # PCH file is compiled at a higher optimization level than
144 # the C++ file. One solution might be to prepare extra optimization
145 # level specific PCH files for the opt build and use them here, but
146 # it's probably not worth the effort as long as only a few files
147 # need this special handling.
148 PCH_FLAG/loopTransform.o = $(PCH_FLAG/NO_PCH)
149 PCH_FLAG/sharedRuntimeTrig.o = $(PCH_FLAG/NO_PCH)
150 PCH_FLAG/sharedRuntimeTrans.o = $(PCH_FLAG/NO_PCH)
151 PCH_FLAG/unsafe.o = $(PCH_FLAG/NO_PCH)
152 PCH_FLAG/jvmciCompilerToVM.o = $(PCH_FLAG/NO_PCH)
153
154 endif
155 else # ($(USE_CLANG), true)
156 # check for precompiled headers support
157 ifneq "$(shell expr \( $(CC_VER_MAJOR) \> 3 \) \| \( \( $(CC_VER_MAJOR) = 3 \) \& \( $(CC_VER_MINOR) \>= 4 \) \))" "0"
158 # Allow the user to turn off precompiled headers from the command line.
159 ifneq ($(USE_PRECOMPILED_HEADER),0)
160 PRECOMPILED_HEADER_DIR=.
161 PRECOMPILED_HEADER_SRC=$(GAMMADIR)/src/share/vm/precompiled/precompiled.hpp
162 PRECOMPILED_HEADER=$(PRECOMPILED_HEADER_DIR)/precompiled.hpp.gch
163 endif
164 endif
165 endif
166
167 # -DDONT_USE_PRECOMPILED_HEADER will exclude all includes in precompiled.hpp.
168 ifeq ($(USE_PRECOMPILED_HEADER),0)
169 CFLAGS += -DDONT_USE_PRECOMPILED_HEADER
170 endif
171
172 #------------------------------------------------------------------------
|