Skip to content

Commit

Permalink
mprove compiler selection and add mechanism for turning on ARC for a …
Browse files Browse the repository at this point in the history
…build

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@39442 72102866-910b-0410-8b05-ffd578937521
  • Loading branch information
rfm committed Mar 2, 2016
1 parent 9f66a4d commit 6aff5f9
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 5 deletions.
14 changes: 12 additions & 2 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
2016-03-02 Richard Frith-Macdonald <rfm@gnu.org>

* configure.ac: Improve selection of clang when 'ng' runtime library
is selected.
* configure: Regenerate.
* library-combo.make: Add support for ARC with the 'ng' runtime
setting. Enabled by defining GS_WITH_ARC=1 at the start of the
GNUmakefile or in the environment or in the 'make' arguments.

2016-03-02 Niels Grewe <niels.grewe@halbordnung.de>

* Master/documentation.make:
Support skipping the documentation build if skip_documentation=yes
Support skipping the documentation build if documentation=no
is supplied
* Documentation/gnustep-make.texi:
Document the new skip_documentation feature (and messages=yes, which
Document the new documentation=no feature (and messages=yes, which
as also missing).

2015-12-11 23:34-EST Gregory John Casamento <greg.casamento@gmail.com>
Expand Down
2 changes: 2 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -1588,6 +1588,8 @@ Optional Packages:
binaries that support multiple library combos. In that case,
this flag will only configure the default one, but you can still
use other ones at run-time.
Please use 'ng-gnu-gnu' to build with 'next generation' cutting edge
runtime and compile time featured (requires a recent version of clang).
--with-tar
Expand Down
2 changes: 2 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ AC_ARG_WITH(library-combo,[
binaries that support multiple library combos. In that case,
this flag will only configure the default one, but you can still
use other ones at run-time.
Please use 'ng-gnu-gnu' to build with 'next generation' cutting edge
runtime and compile time featured (requires a recent version of clang).
],
ac_cv_library_combo=$withval,
ac_cv_library_combo=$ac_cv_library_combo
Expand Down
12 changes: 9 additions & 3 deletions library-combo.make
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,16 @@ ifeq ($(OBJC_RUNTIME_LIB), ng)
OBJC_LIBS = $(OBJC_LIB_FLAG) -fobjc-nonfragile-abi
RUNTIME_FLAG = -fobjc-runtime=gnustep-1.8 -fblocks -fno-objc-legacy-dispatch
RUNTIME_DEFINE = -DGNUSTEP_RUNTIME=1 -D_NONFRAGILE_ABI=1
# By default we enable ARC for ng code, but projects may disable it
# by defining GS_WITH_ARC=0 at the start of their GNUmakefile
# Projects may control the use of ARC by defining GS_WITH_ARC=1
# or GS_WITH_ARC=0 at the start of their GNUmakefile, or in the environment,
# or as an argument to the 'make' command.
# The default behavior is not to use ARC, unless GNUSTEP_NG_ARC is
# set to 1 (perhaps in the GNUstep config file; GNUstep.conf).
#
ifeq ($(GS_WITH_ARC),)
GS_WITH_ARC = 1
ifeq ($(GNUSTEP_NG_ARC), 1)
GS_WITH_ARC=1
endif
endif
ifeq ($(GS_WITH_ARC), 1)
RUNTIME_FLAG += -fobjc-arc
Expand Down

0 comments on commit 6aff5f9

Please sign in to comment.