Bug 871 - Add optional xcode.clang support for all modules (Extends Bug 837 w/ xcode's xcrun)
Summary: Add optional xcode.clang support for all modules (Extends Bug 837 w/ xcode's ...
Status: RESOLVED FIXED
Alias: None
Product: General
Classification: JogAmp
Component: infrastructure (show other bugs)
Version: unspecified
Hardware: All macosx
: --- enhancement
Assignee: Sven Gothel
URL:
Depends on: 837
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-24 19:47 CEST by Sven Gothel
Modified: 2013-10-25 02:13 CEST (History)
0 users

See Also:
Type: ---
SCM Refs:
ant-cpptasks a65cc99054a5a6684784bf9a9e8c13fe866b81ad gluegen aa7a0d3a3feee1360ae4d7465a9da263aea530ac gluegen 1410a1324c421d7f84655fc7366442d5dc9b2d1e jogl 970c9823007d1618e67480440ff40e7802dbb90f
Workaround: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Gothel 2013-10-24 19:47:06 CEST
Add optional xcode.clang support for all modules (Extends Bug 837 w/ xcode's xcrun)

Xcode provides a commandline utility 'xcrun',
which sets the SDK root and adds the toolchains
depending on the selected version.

This allows to skip installing the commandline tools.

GlueGen Property:
  'gcc.compat.compiler' defaults to 'gcc', maybe 'clang', maybe 'xcode.clang'
Comment 1 Sven Gothel 2013-10-24 19:48:06 CEST
Requires to add Xcode xcrun support to ant-cpptasks.
Comment 2 Sven Gothel 2013-10-24 20:15:59 CEST
ant-cpptasks:

    Add 'isXCoderun' into the OO chain CommanLine[Compiler|Linker]
    up-to [Gcc|Gpp]Linker and GccCCompiler.
    
    Xcode's xcrun is now triggered via using the commands (linker and compiler):
      xcode.clang
      xcode.clang++
    
    More could be added later ..
    
    +++
    
    [Gcc|Gpp]Linker are derived from GnuLinker
    to reuse common code and to fix GppLinker (align to GccLinker).
    
    +++

gluegen:

    Bump make/lib/cpptasks.jar to a65cc99054a5a6684784bf9a9e8c13fe866b81ad
    
    make/lib/gluegen-clang.properties: Defaults to xcode.clang
    
    make/jogamp-env.xml: Show env. SDKROOT
Comment 3 Sven Gothel 2013-10-24 23:44:10 CEST
Remove abs. include path.
    
    #include </usr/include/machine/types.h> -> #include <machine/types.h>
Comment 4 Sven Gothel 2013-10-25 02:13:22 CEST
Fix 'isCLANG' detection ; echo 'gcc.compat.compiler'