Displaying 20 results from an estimated 2000 matches similar to: "[LLVMdev] Linking to the LLVM shared library"
2010 Aug 22
1
[LLVMdev] Linking to the LLVM shared library
Óscar Fuentes <ofv at wanadoo.es> wrote:
> The following message is a courtesy copy of an article
> that has been posted to gmane.comp.compilers.llvm.devel as well.
>
> nobled <nobled at dreamwidth.org> writes:
>
>> The LLVM 2.7 release notes say you can use ./configure --enable-shared
>> to build LLVM as a shared library (libLLVM2.7.so), and the LLVM tools
2010 Aug 22
0
[LLVMdev] Linking to the LLVM shared library
nobled <nobled at dreamwidth.org> writes:
>>> The LLVM 2.7 release notes say you can use ./configure --enable-shared
>>> to build LLVM as a shared library (libLLVM2.7.so), and the LLVM tools
>>> will link against that instead of including the static libraries, so I
>>> was wondering:
>>>
>>> Is there a way to configure LLVM the same way
2010 Aug 22
2
[LLVMdev] Linking to the LLVM shared library
Óscar Fuentes <ofv at wanadoo.es> wrote:
> The following message is a courtesy copy of an article
> that has been posted to gmane.comp.compilers.llvm.devel as well.
>
> nobled <nobled at dreamwidth.org> writes:
>
>>>> The LLVM 2.7 release notes say you can use ./configure --enable-shared
>>>> to build LLVM as a shared library (libLLVM2.7.so), and
2010 Aug 22
0
[LLVMdev] Linking to the LLVM shared library
nobled <nobled at dreamwidth.org> writes:
>> AFAIK, the `configure&make' build had so-so support for shared
>> libraries. Maybe that is fixed now. What they implemented recently was
>> one option for generating a single shared library containing all LLVM.
>
> Right, that was my original question--when you build libLLVM2.7.so
> with --enable-shared,
2013 Mar 26
6
[LLVMdev] Feedback required on proper dllexport/import implementation
Hello,
while improving and extending support for dllexport/import I have
noticed that the current way these are implemented is problematic and I
would like some input on how to proceed.
Currently dllexport/dllimport is treated as linkage type. This conflicts
with inlined functions because there is no linkage for the combination
of both. On first though, combining both doesn't make sense, but
2013 Apr 23
0
[LLVMdev] Feedback required on proper dllexport/import implementation
Hi Nico, Reid, and Anton,
I missed the discussion when I implemented dllexport/dllimport for our local tree. I
essentially implemented your approach#1. I was trying to avoid the various
external_linkage + some_attribute approaches because it seems that external_linkage
would imply the external linkage without the dllimport/dllexport semantics, and there
may be existing compiler codes that rely on
2014 May 24
2
make dllimport/dllexport attributes work with mingw (and others)
The following patch changes export.h so that the dllimport/dllexport
attributes work with mingw/mingw-w64 and others:
- changes _declspec keyword to __declspec: the former may not be
defined by some toolchains.
- changes the _MSC_VER condition to universally _WIN32: MSVC, as well
as GCC supports this.
Attached patch: declspec.diff
Regards.
--
O.S.
-------------- next part --------------
2013 Apr 23
2
[LLVMdev] Feedback required on proper dllexport/import implementation
On 23.04.2013 19:10, Gao, Yunzhong wrote:
> I missed the discussion when I implemented dllexport/dllimport for our local tree. I
> essentially implemented your approach#1. I was trying to avoid the various
> external_linkage + some_attribute approaches because it seems that external_linkage
> would imply the external linkage without the dllimport/dllexport semantics, and there
> may
2017 Jan 23
1
os/2 support using Watcom
On 01/23/17 01:01 AM, Erik de Castro Lopo wrote:
> Dave Yeo wrote:
>
>> >GCC supports __declspec(dllexport) though it still needs a def file,
>> >with no exports. Libtool doesn't currently and as flac uses libtool...
> So you're happy with this patch?
>
> http://lists.xiph.org/pipermail/flac-dev/2017-January/006170.html
>
No. Lots of errors such
2017 Jan 23
4
os/2 support using Watcom
On 01/22/17 02:00 PM, Ozkan Sezer wrote:
> Question: Does emx support __declspec(dllexport) so I can adjust
> these changes? Because the emx build of the dll seems to have
> exported_everything_ :(
GCC supports __declspec(dllexport) though it still needs a def file,
with no exports. Libtool doesn't currently and as flac uses libtool...
Dave
2012 Apr 08
0
[LLVMdev] Building LLVM as a shared library using Visual C++ 2010?
On Fri, Apr 6, 2012 at 6:15 PM, Alan Garny <agarny at hellix.com> wrote:
> Hi,
>
> From what I have seen on this mailing list and elsewhere, it would seem that
> it isn’t possible to build LLVM as a shared library using Visual C++. Still,
> I would imagine that quite a few people are or would be interested in it,
> so… is there any plan to support this any time soon? This,
2012 Apr 07
5
[LLVMdev] Building LLVM as a shared library using Visual C++ 2010?
Hi,
>From what I have seen on this mailing list and elsewhere, it would seem that
it isn't possible to build LLVM as a shared library using Visual C++. Still,
I would imagine that quite a few people are or would be interested in it,
so. is there any plan to support this any time soon? This, unless it's
already supported in some way or another which I am not aware of.? I have
been
2012 Apr 08
2
[LLVMdev] Building LLVM as a shared library using Visual C++ 2010?
Óscar Fuentes <ofv at wanadoo.es> writes:
> Michael Spencer <bigcheesegs at gmail.com> writes:
> > The problem is that MSVC++ requires sprinkling
> > __declspec(dllexport/dllimport) all over the code, and we really don't
> > want to deal with maintaining that, as most developers have little to
> > no experience with Windows DLLs.
>
> BTW, you
2008 May 14
1
[LLVMdev] LLVM as a DLL
Owen Anderson <resistor at mac.com> writes:
> On May 13, 2008, at 6:38 PM, Óscar Fuentes wrote:
>> Last time I checked, building LLVM on Windows (MinGW or MSVC) did not
>> produce dlls.
>>
>> Has this changed?
>>
>> I was succesful converting the libraries produced by MinGW to dlls,
>> though.
>
> It's a little bit immaterial whether
2017 Jun 09
5
Cannot build Clang/LLVM on Windows with LLVM_BUILD_LLVM_DYLIB
I am trying to build Clang/LLVM with -DLLVM_BUILD_LLVM_DYLIB=ON and
-DLLVM_LINK_LLVM_DYLIB=ON to reduce the size of toolchain.
I am getting LINK error 1181 about `lib\LLVM.lib` not found. After
investigating, `lib\LLVM.lib` is supposed to be produced along with
`bin\LLVM.dll`. `bin\LLVM.dll` is indeed produced, but it does not
contain any exported symbols (10KB only) because LLVM does not use
2005 Jan 02
3
[LLVMdev] VC++ linking issues, revisited
Jeff Cohen wrote:
> OK, there may be some light at the end of the tunnel. I *can* force
> an arbitrary .obj file to become part of the executable, one that is
> not part of the executable's project. This is sufficient to eliminate
> the global variable hack Morten introduced for the X86 target.
>
> But this still doesn't scale very well, as I'd have to manually
2013 May 07
0
[LLVMdev] Feedback required on proper dllexport/import implementation
Hi Nico,
Thank you for your feedback. I'll try to answer your questions below.
> What problems do you expect with another approach? I have a local
> prototype that removes dllimport/export as linkage and uses function
> attributes and an extension to globals. I decorate dllexported functions with
> the Used attribute and it seems to work fine. This allows such functions to
>
2010 Aug 02
2
[LLVMdev] [PATCH] fix "ambiguous call to overloaded function" with Visual Studio 2010
The attached patch gets rid of the "error C2668" mentioned on the wiki
page (all the other errors seem to be fixed in SVN already AFAICT):
http://wiki.llvm.org/How_do_I_compile_on_Visual_C%2B%2B%3F
Applying this to trunk fixes http://llvm.org/bugs/show_bug.cgi?id=5592 for me.
-------------- next part --------------
A non-text attachment was scrubbed...
Name:
2010 Aug 03
2
[LLVMdev] [PATCH] MSVC: Allow choosing different CRT for different build types
Óscar Fuentes <ofv at wanadoo.es> wrote:
> I'm a bit wary about this patch. So much complexity for so petty
> feature... Maybe the right thing is to determine the scenarios where
> people set LLVM_USE_CRT. Maybe all we need is to define another build
> type that inherits from Release which uses the debug version of the CRT.
>
> Anyways, the patch have some issues:
2015 Mar 10
2
[LLVMdev] LLVM 3.6: problems building on Windows using MSVC 2013
Ok, I have just found the cause of the error messages I am getting, and it
now makes sense to me why the 'normal' build works fine on Windows, Linux
and OS X, and why my personal build works on Linux and OS X, but not on
Windows. However, I still don't understand why I am getting the error
messages I am getting.
Anyway, it has to do with wanting to export some classes and function,