Skip to content

Commit

Permalink
LLVM/clang updates
Browse files Browse the repository at this point in the history
  • Loading branch information
nmcl committed Dec 20, 2016
1 parent 7283579 commit 67440c8
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Include/Config/c_clang_3_7.cf
@@ -0,0 +1,27 @@
/*
* Copyright 1990-2008, Mark Little, University of Newcastle upon Tyne
* and others contributors as indicated
* by the @authors tag. All rights reserved.
* See the copyright.txt in the distribution for a
* full listing of individual contributors.
* This copyrighted material is made available to anyone wishing to use,
* modify, copy, or redistribute it subject to the terms and conditions
* of the GNU Lesser General Public License, v. 2.1.
* This program is distributed in the hope that it will be useful, but WITHOUT A
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
* You should have received a copy of the GNU Lesser General Public License,
* v.2.1 along with this distribution; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*
* (C) 2016,
*/

/*
* c_clang_3_7.cf
*/

#define COMPILER_SPECIFIC_FLAGS -DHAVE_BOOLEAN_TYPE -DHAVE_WCHAR_TYPE -DHAVE_LONG_LONG -DGCC_STATIC_INIT_BUG -DMEMFNS_IN_STRING_H -DCPLUSPLUS_STANDARD

#define STUBGEN_CC_FLAGS "-D__GNUG__=5 -D__GNUC__=5 -D__GNUC_MINOR__=0 -D__GCC_NEW_VARARGS__"
6 changes: 6 additions & 0 deletions configure
Expand Up @@ -473,6 +473,12 @@ case "$CPLUSPLUS_PROGRAM" in
echo "done (version is" $fullversion ")"
CPLUSPLUS_NAME="c_cxx"
;;
*clang*) version="`$CPLUSPLUS_PROGRAM -v 2>&1 | grep version | sed 's/^[^0-9]*\([0-9.]*\).*/\1/'`"
echo "done (version is" $version ")"
CPLUSPLUS_NAME="c_clang"
LEX_PROGRAM=flex
YACC_PROGRAM=bison
;;
*) CPLUSPLUS_NAME="c"
echo "done (version unknown)"
;;
Expand Down

0 comments on commit 67440c8

Please sign in to comment.