Kaydet (Commit) 41540062 authored tarafından Matúš Kukan's avatar Matúš Kukan Kaydeden (comit) Fridrich Strba

build concat-deps as ordinary executable

Change-Id: I6404472040f38c14ec7ca4a2c51be0d2f7f8199a
Reviewed-on: https://gerrit.libreoffice.org/2659Reviewed-by: 's avatarFridrich Strba <fridrich@documentfoundation.org>
Tested-by: 's avatarFridrich Strba <fridrich@documentfoundation.org>
üst b977c273
...@@ -33,6 +33,7 @@ $(eval $(call gb_Helper_register_executables,NONE, \ ...@@ -33,6 +33,7 @@ $(eval $(call gb_Helper_register_executables,NONE, \
bmp \ bmp \
bmpsum \ bmpsum \
cfgex \ cfgex \
concat-deps \
cpp \ cpp \
cppunit/cppunittester \ cppunit/cppunittester \
$(call gb_Helper_optional,CRASHREP,crashrep) \ $(call gb_Helper_optional,CRASHREP,crashrep) \
......
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
$(eval $(call gb_CustomTarget_CustomTarget,solenv/concat-deps))
$(eval $(call gb_CustomTarget_register_targets,solenv/concat-deps,\
concat-deps$(gb_Executable_EXT_for_build) \
))
$(call gb_CustomTarget_get_workdir,solenv/concat-deps)/concat-deps$(gb_Executable_EXT_for_build) : \
$(SRCDIR)/solenv/bin/concat-deps.c
$(call gb_Output_announce,solenv/concat-deps,$(true),C,1)
ifeq ($(COM_FOR_BUILD),MSC)
LIB="$(ILIB)" $(CC_FOR_BUILD) -nologo $(SOLARINC) -O2 $< -Fo$(dir $@) -Fe$(dir $@)
else
$(CC_FOR_BUILD) -O2 $< -o $@
endif
# vim: set noet sw=4 ts=4:
...@@ -7,8 +7,10 @@ ...@@ -7,8 +7,10 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
# #
$(eval $(call gb_Package_Package,solenv_concat-deps,$(call gb_CustomTarget_get_workdir,solenv/concat-deps))) $(eval $(call gb_Executable_Executable,concat-deps))
$(eval $(call gb_Package_add_file,solenv_concat-deps,bin/concat-deps$(gb_Executable_EXT_for_build),concat-deps$(gb_Executable_EXT_for_build))) $(eval $(call gb_Executable_add_cobjects,concat-deps,\
solenv/bin/concat-deps, $(gb_COMPILEROPTFLAGS) \
))
# vim: set noet sw=4 ts=4: # vim: set noet sw=4 ts=4:
...@@ -34,8 +34,7 @@ $(eval $(call gb_Module_add_targets,solenv,\ ...@@ -34,8 +34,7 @@ $(eval $(call gb_Module_add_targets,solenv,\
ifeq ($(CROSS_COMPILING),$(false)) ifeq ($(CROSS_COMPILING),$(false))
$(eval $(call gb_Module_add_targets,solenv,\ $(eval $(call gb_Module_add_targets,solenv,\
CustomTarget_concat-deps \ Executable_concat-deps \
Package_concat-deps \
)) ))
endif endif
......
...@@ -209,7 +209,7 @@ void* data = NULL; ...@@ -209,7 +209,7 @@ void* data = NULL;
* this is a simplified implementation that * this is a simplified implementation that
* is _not_ thread safe. * is _not_ thread safe.
*/ */
struct pool* pool_create(int size_elem, int flags, int primary, int secondary) struct pool* pool_create(int size_elem, int primary, int secondary)
{ {
struct pool* pool; struct pool* pool;
...@@ -482,7 +482,7 @@ struct hash* hash; ...@@ -482,7 +482,7 @@ struct hash* hash;
if(hash) if(hash)
{ {
hash->elems_pool = pool_create(sizeof(struct hash_elem), hash->elems_pool = pool_create(sizeof(struct hash_elem),
0, size, size << 1); size, size << 1);
if(!hash->elems_pool) if(!hash->elems_pool)
{ {
hash_destroy(hash); hash_destroy(hash);
...@@ -499,7 +499,7 @@ unsigned int hashed; ...@@ -499,7 +499,7 @@ unsigned int hashed;
struct hash_elem* hash_elem; struct hash_elem* hash_elem;
struct hash_elem* next; struct hash_elem* next;
struct hash_elem** array; struct hash_elem** array;
int i; unsigned int i;
hash->size = (old_size << 1) + 1; hash->size = (old_size << 1) + 1;
/* we really should avoid to get there... so print a message to alert of the condition */ /* we really should avoid to get there... so print a message to alert of the condition */
...@@ -556,6 +556,7 @@ unsigned int hashed; ...@@ -556,6 +556,7 @@ unsigned int hashed;
struct hash_elem* hash_elem; struct hash_elem* hash_elem;
int cost = 0; int cost = 0;
(void) cost;
hashed = hash_compute(hash, key, key_len); hashed = hash_compute(hash, key, key_len);
#ifdef HASH_STAT #ifdef HASH_STAT
hash->stored += 1; hash->stored += 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment