search for: cxxflag

Displaying 20 results from an estimated 826 matches for "cxxflag".

Did you mean: cxxflags
2015 Feb 17
2
[LLVMdev] [PATCH 1/2 v3] configure: add visibility macro detection to configure
...RESULT([no])]); > - > - # Restore CFLAGS; VISIBILITY_CFLAGS are added to it where needed. > - CFLAGS=$save_CFLAGS > + if test "x${ax_cv_have_func_attribute_visibility}" = xyes; then > + VISIBILITY_CFLAGS="-fvisibility=hidden" > + VISIBILITY_CXXFLAGS="-fvisibility=hidden" > + fi > > # Work around aliasing bugs - developers should comment this out > CFLAGS="$CFLAGS -fno-strict-aliasing" > @@ -267,19 +264,6 @@ fi > if test "x$GXX" = xyes; then > CXXFLAGS="$CXXFLAGS -Wall&...
2014 Jun 13
6
[LLVMdev] include's are not being located
...h_back(T &&Elt) { >> ^ >> /usr/local/include/llvm/ADT/SmallVector.h:476:33: warning: rvalue references are a C++11 extension [-Wc++11-extensions] >> iterator insert(iterator I, T &&Elt) { >> > You need to build Clang/LLVM with a {CXX, CXXFLAGS} pair (read: a c++ compiler for your host) that supports C++11. That can either be one whose default is c++11, or one that doesn't but lets you put '--std=c++11' in the CXXFLAGS. > > http://llvm.org/docs/GettingStarted.html suggests GCC >= 4.7.0 for this. Hello again, Runni...
2012 Nov 22
2
[LLVMdev] llvm-config --cxxflags is not consistent when building by cmake.
Hi Óscar, On 22/11/12 09:41, Óscar Fuentes wrote: > Luba Tang <lubatang at gmail.com> writes: > >> We found `llvm-config --cxxflags' does not have -fno-exceptions -fno-rtti >> when using cmake to build LLVM. >> Does anyone know how to fix it? > > Using -fno-rtti and -fno-exceptions is an internal LLVM policy. There is > no reason to impose it on client code. actually it does impact external code. For...
2012 Nov 23
0
[LLVMdev] llvm-config --cxxflags is not consistent when building by cmake.
...ified plugin")); > > If dragonegg is compiled with RTTI then linking fails because there is no RTTI > for the cl::opt class. Thus dragonegg is forced to compile with -fno-rtti if > it wants to work with this part of LLVM. > > There is also the question of what `llvm-config --cxxflags` is supposed to mean. > Is it supposed to give the flags that LLVM was compiled with? Or is it supposed > to give the flags that users of LLVM must compile themselves with? If it's the > second why does it have optimization levels (-O2), debug info (-g) and so on, > which are not...
2012 Nov 21
2
[LLVMdev] llvm-config --cxxflags is not consistent when building by cmake.
Hi, We found `llvm-config --cxxflags' does not have -fno-exceptions -fno-rtti when using cmake to build LLVM. Does anyone know how to fix it? Best regards, Luba ---------- Forwarded message ---------- From: Luba Tang <lubatang at gmail.com> Date: 2012/11/21 Subject: Re: [MCLinker] Re: Major release - MCLinker 2.0.0 - Rock...
2014 Jun 16
3
[LLVMdev] include's are not being located
On 6/16/14, 1:14 PM, Dan Liew wrote: > Hi Joseph, > >> In other words what does " put '--std=c++11' in the CXXFLAGS” mean? Do you >> have an example of what it would look like? or what should I read in order >> to learn this? I’m happy to read up but I don’t know where to start reading >> (besides the getting started page on llvm) :) > > You're still trying to build the tutorial ri...
2012 Mar 13
2
[LLVMdev] llvm-config --cxxflags does not give the result the configuration script wants?
...k I found a bug in llvm's CMakeLists.(I use llvm 3.1svn and Clang 3.1) I follow the normal way to try to compile an application that utilize both clang and llvm: I ./autogen.sh it, ./configure it and make it. But the make fails. At last I found out the failure is because that the Makefile's CXXFLAGS does not contain -fno-rtti option which is needed by the compilation. The "configure" file of the application use llvm-config --cxxflags to assign to the CXXFLAGS. But Although I see that, under my platform, almost all the the files inside LLVM and Clang are compiled with -fno-rtti, the...
2010 Mar 14
2
[LLVMdev] Why does `llvm-config --cxxflags` now include -fno-rtti ?
Hi, I'm trying to port a piece of code using LLVM as a library to the latest SVN version. One difference between 2.6 and 2.7svn is that `llvm-config --cxxflags` now include -fno-rtti. Since my code does use RTTI information (in non-trivial dynamic_cast), my code can't compile with this. Same goes for -fexceptions. I've tried setting my CXXFLAGS to `llvm-config --cxxflags` -frtti -fexceptions, now my code compiles, but it doesn't link against...
2015 Feb 26
2
[LLVMdev] [Mesa-dev] [PATCH 1/2 v3] configure: add visibility macro detection to configure
...ot;; AC_MSG_RESULT([no])]); > - > - # Restore CFLAGS; VISIBILITY_CFLAGS are added to it where needed. > - CFLAGS=$save_CFLAGS > + if test "x${ax_cv_have_func_attribute_visibility}" = xyes; then > + VISIBILITY_CFLAGS="-fvisibility=hidden" > + VISIBILITY_CXXFLAGS="-fvisibility=hidden" > + fi > As these two are no longer GCC "specific" we can move them out of the if test x$GCC = xyes, conditional. > # Work around aliasing bugs - developers should comment this out > CFLAGS="$CFLAGS -fno-strict-aliasing&qu...
2007 Mar 20
2
PKG_CFLAGS/CFLAGS and PKG_CXXFLAGS/CXXFLAGS
...what you didn't want: -O2. In R-exts, it says that "Flags which are set in file etc/Makeconf can be overridden by the environment variable MAKEFLAGS (at least for systems using GNU make), as in (Bourne shell syntax)" but this doesn't work if I set either MAKEFLAGS or CFLAGS/CXXFLAGS in my configure.ac script or package Makevars. Does anyone have any ideas on how to reliably override the default CFLAGS/CXXFLAGS given in Makeconf? Many thanks, Ernest
2012 Dec 09
1
[LLVMdev] llvm-config --cxxflags is not consistent when building by cmake.
...t;> >> If dragonegg is compiled with RTTI then linking fails because there is no RTTI >> for the cl::opt class. Thus dragonegg is forced to compile with -fno-rtti if >> it wants to work with this part of LLVM. >> >> There is also the question of what `llvm-config --cxxflags` is supposed to mean. >> Is it supposed to give the flags that LLVM was compiled with? Or is it supposed >> to give the flags that users of LLVM must compile themselves with? If it's the >> second why does it have optimization levels (-O2), debug info (-g) and so on, >&g...
2015 Feb 17
7
[LLVMdev] [PATCH 0/2 v3] add visibility hidden to tls entry points
Patch 1 adds a check for the compilers visibility macro to configure.ac. Patch 2 avoids redefined symbol errors in clang of the tls entry points. Based on a suggestion from Rafael Ávila de Espíndola <rafael.espindola at gmail.com> in http://llvm.org/bugs/show_bug.cgi?id=19778. Tested with gcc 4.9 and clang 3.6(rc) Marc Dietrich (2): configure: add visibility macro detection to configure
2017 Apr 19
2
Default R-3.4.0 RC CXXFLAGS without -O2 on x86_64-linux-gnu with g++-5.4.0 causes WARNING from stl_list.h
Hi r-devel, a recent install of R-3.4.0 RC (2017-04-13 r72510)? on Linux (Ubuntu 16.04.1 LTS) x86_64-linux-gnu? with?g++ (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609 (see?http://bioconductor.org/checkResults/devel/bioc-LATEST/malbec2-NodeInfo.html?for more)? results in CXXFLAGS not containing "-O2" as optimisation flag, there is only " -Wall", while?CFLAGS are happy with "-g -O2 -Wall" This has an influence in at least one place https://stat.ethz.ch/pipermail/bioc-devel/2017-April/010733.html where we have WARNINGS in R CMD check from &quot...
2008 Apr 18
1
problem customizing CXXFLAGS in Windows
...shared library in Windows with customized level of optimization. Specifically, I would like to have "-O3 -funroll-loops" as flags when I run "R CMD SHLIB ***.cc" to speed the program for my simulations. I have read through the documentation and have tried adding the line PKG_CXXFLAGS = -O3 -funroll-loops in my Makevars in my package's src directory. However, this places the flags before the -O2 flag, thereby overriding it. I have also tried creating a config.site file in R_HOME/etc, but that seems to be ignored. I found a possible solution at http://tolstoy.newcastle.e...
2012 Nov 22
0
[LLVMdev] llvm-config --cxxflags is not consistent when building by cmake.
Luba Tang <lubatang at gmail.com> writes: > We found `llvm-config --cxxflags' does not have -fno-exceptions -fno-rtti > when using cmake to build LLVM. > Does anyone know how to fix it? Using -fno-rtti and -fno-exceptions is an internal LLVM policy. There is no reason to impose it on client code.
2017 Apr 20
0
Default R-3.4.0 RC CXXFLAGS without -O2 on x86_64-linux-gnu with g++-5.4.0 causes WARNING from stl_list.h
...l, > > a recent install of R-3.4.0 RC (2017-04-13 r72510)? > on Linux (Ubuntu 16.04.1 LTS) x86_64-linux-gnu? > with?g++ (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609 > (see?http://bioconductor.org/checkResults/devel/bioc-LATEST/malbec2-N > odeInfo.html?for more)? > results in CXXFLAGS not containing "-O2" as optimisation flag, > there is only " -Wall", while?CFLAGS are happy with "-g -O2 > -Wall" > > This has an influence in at least one place > https://stat.ethz.ch/pipermail/bioc-devel/2017-April/010733.html > where we have WARN...
2011 Jan 16
2
[LLVMdev] About test suits Cont1
*[qali at qali llvm-2.8-rev]$ find . -exec grep -n "LLVMCC_EMITIR_FLAG" ./ {} \;* ./projects/test-suite/Makefile.tests:47: -$(LCC) $(CPPFLAGS) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -S $< -o $@ $(LLVMCC_EMITIR_FLAG) ./projects/test-suite/Makefile.tests:51: -$(LCXX) $(CPPFLAGS) $(CXXFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -S $< -o $@ $(LLVMCC_EMITIR_FLAG) ./projects/test-suite/Makefile.tests:55: -$(LCXX) $(CPPFLAGS) $(CXXFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -S $< -o $@ $(LLVMCC_EMITIR_FLAG) ./projects/test-suite/Makefile.tests:59: -$(LCXX) $(CPPFLAGS) $(CXXFLAGS) $(LOPTFLAGS)...
2014 Sep 18
1
difference between install from source and install from repositories
Hi, What is the difference between the R installation from source and the R installation from ubuntu repositories. Specifically when I install R-3.1.1 on ubuntu 14.04 from sources ldflags and CXXFLAGS are different that those from the installation from a repo. Installation from sources: R CMD config --ldflags -Wl,--export-dynamic -fopenmp -L/home/prana/prana_R/third-party/install/lib/R/lib -lR -lrt -ldl -lm R CMD config CXXFLAGS Installation from repo: R CMD config --ldflags -Wl,--ex...
2014 Feb 13
2
回复: A beginner in "Posting list encoding improvements"
...-1.2.17/xapian-core-1.2.17# make -sj8 Making all in . Making all in docs Making all in tests root at hurricanetong-VirtualBox:/home/hurricanetong/xapian-1.2.17/xapian-core-1.2.17# sudo make install [...] then root at hurricanetong-VirtualBox:/home/hurricanetong/workspace# g++ `xapian-config --cxxflags --libs` demo2.cpp /tmp/ccRXtBxB.o: In function `main': demo2.cpp:(.text+0x4a): undefined reference to `Xapian::WritableDatabase::WritableDatabase(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)' demo2.cpp:(.text+0x73): undefined ref...
2014 May 25
2
replace -Wextra with -W
The attached small configury patch replaces -Wextra with -W in the main CFLAGS and CXXFLAGS assignments. A few lines after them, -Wextra is conditionally added already with XIPH_ADD_CFLAGS([-Wextra]), so this allows build using older compilers. Regards. -- O.S. -------------- next part -------------- diff --git a/configure.ac b/configure.ac index 6d0fa00..cc5a247 100644 --- a/configure...