lok: Don't attempt to select the exact text after a failed search.
[LibreOffice.git] / solenv / gbuild / platform / WNT_INTEL_GCC.mk
blob9c81e34fef276f7bbc0b8bf036d1170c954ff2a8
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 # This file incorporates work covered by the following license notice:
11 # Licensed to the Apache Software Foundation (ASF) under one or more
12 # contributor license agreements. See the NOTICE file distributed
13 # with this work for additional information regarding copyright
14 # ownership. The ASF licenses this file to you under the Apache
15 # License, Version 2.0 (the "License"); you may not use this file
16 # except in compliance with the License. You may obtain a copy of
17 # the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 gb_COMPILEROPTFLAGS := -Os
21 gb_CPUDEFS := -D_M_IX86
22 gb_TMPDIR:=$(if $(TMPDIR),$(TMPDIR),/tmp)
24 # please make generic modifications to either of these
25 include $(GBUILDDIR)/platform/com_GCC_defs.mk
26 include $(GBUILDDIR)/platform/windows.mk
28 ifeq ($(COM_GCC_IS_CLANG),)
29 # This has to do something with calling conventions, which are different
30 # for x86 and x64. Don't put it in the common part since it is breaking
31 # and conde that uses boost::bind
32 gb_GccLess470 := $(shell expr $(GCC_VERSION) \< 407)
34 # Until GCC 4.6, MinGW used __cdecl by default, and BOOST_MEM_FN_ENABLE_CDECL
35 # would result in ambiguous calls to overloaded boost::bind; since GCC 4.7,
36 # MinGW uses __thiscall by default, so now needs BOOST_MEM_FN_ENABLE_CDECL for
37 # uses of boost::bind with functions annotated with SAL_CALL:
38 ifeq ($(gb_GccLess470),0)
39 gb_COMPILERDEFS += -DBOOST_MEM_FN_ENABLE_CDECL
40 endif
41 endif
43 include $(GBUILDDIR)/platform/mingw.mk
45 include $(GBUILDDIR)/platform/com_GCC_class.mk
47 # vim: set noet sw=4: