Displaying 20 results from an estimated 20000 matches similar to: "libOption"
2016 Apr 20
2
libOption
Okay, that makes sense, thanks. I'll go with cl::opt, then.
On Wed, Apr 20, 2016 at 8:08 AM, Sean Silva <chisophugis at gmail.com> wrote:
> libOption's key feature is being able implement command line parsing
> compatible with basically any program under the sun. For example, you have
> control over distinguishing between `-foo` and `--foo` if you need that.
> It is
2016 Apr 02
2
getSymbolAddressInProcess returning null
Tried that, still didn't work. Then I tried making a direct API call,
GetProcAddress(GetModuleHandle(0),"foo")
And this works if and only if __declspec(dllexport) is supplied. So it
looks like we were both right.
On Sat, Apr 2, 2016 at 9:29 AM, NAKAMURA Takumi <geek4civic at gmail.com>
wrote:
> Have you tried to add dllexport?
>
> On Sat, Apr 2, 2016 at 4:23 PM
2010 Mar 20
2
[LLVMdev] 2.7 Pre-release1 available for testing
On Sat, Mar 20, 2010 at 10:13 AM, Russell Wallace
<russell.wallace at gmail.com> wrote:
> Ah, okay, thanks. Is the same true of Clang?
>
Clang builds with MSVC, though to build something you have to have a
'gcc' in your path to build the assembly that is produced.
2015 Jun 12
2
[LLVMdev] Self compiling latest clang from SVN
Makes sense, yeah, trying something in a different environment is usually a
good way to find problems. I had indeed moved the renamed clang-cl.exe to a
different directory, but when I move it back into its home directory and
retry the build, I get the same errors.
On Thu, Jun 11, 2015 at 11:16 PM, Reid Kleckner <rnk at google.com> wrote:
> Thanks for trying the self-host, it's
2018 Nov 06
3
[llvm-readobj][RFC]Making llvm-readobj GNU command-line compatible
Hi all,
A broad goal of many of the LLVM binary tools, such as llvm-objcopy and
llvm-objdump is to provide an alternative to the GNU equivalent, and as
such, these tools have been developed to be command-line compatible. One
tool where this hasn’t been the case up to now is llvm-readobj (aka
llvm-readelf).
There was some discussion in https://reviews.llvm.org/D33872 about the
purpose of
2015 Sep 03
2
lld on Windows
Ah! I don't know what GUARDSYM does or whether there is any way to turn it
off at the compiler end; a Google search doesn't seem to find anything; but
it would be great if you could add support for msvc 2015.
When I try using clang as the compiler, I get a different error message. In
this case it seems to be just not finding the standard libraries?
C:\t>clang -c a.c
C:\t>lld
2015 Jun 08
3
[LLVMdev] msbuild and clang
I'm trying to compile some large programs with clang on Windows (with a
view to compiling to bit code and then running some whole program
optimisations on the bit code).
Take for example the Python 2.7 interpreter:
As is typically the case, the usual build procedure involves running
msbuild which invokes the Microsoft compiler.
The most obvious procedure would then be to substitute
2015 Jun 09
2
[LLVMdev] msbuild and clang
Okay, so trying a straight compile of the Python interpreter with clang-cl,
I used the following commands:
cd \python-2.7.10\pcbuild
copy C:\llvm\build\Release\bin\clang-cl.exe cl.exe
rd /q /s amd64
rd /q /s win32-temp-debug
rd /q /s win32-temp-release
rd /q /s x64-temp-debug
rd /q /s x64-temp-release
msbuild /p:Configuration=Release /v:diag /fileLogger pcbuild.sln
(The second line is the one
2015 Jun 11
2
[LLVMdev] Self compiling latest clang from SVN
I tried checking out the latest llvm/clang from SVN (as of a few hours ago)
and compiling it (clang 3.6.1 doesn't compile 3.7 because it fails a
version check, so I repeated the technique of compiling with Microsoft C++
first, then using the resulting clang-cl.exe). It fails with a bunch of
error messages along the lines of:
LLVMSupport.lib(Atomic.obj) : error LNK2019: unresolved external
2015 Jul 16
2
[LLVMdev] [lldb-dev] [3.7 Release] We have branched
On Wed, Jul 15, 2015 at 10:45 AM, Russell Wallace <russell.wallace at gmail.com
> wrote:
> Basic test results on Windows 7, visual studio 2013 (64 bit):
>
> Build clang with visual studio - okay
>
> Build clang with itself - okay
>
> Build Python - okay
>
> Build Ruby - fails on conftest.c, but 3.6 also failed so this is not a
> regression bug
>
> Build
2015 Jun 10
2
[LLVMdev] Self-compiling clang on Windows
I'm trying to get clang 3.6.1 to compile itself on Windows, using this
command line:
msbuild /p:Configuration=Release /p:CLToolExe=clang-cl.exe
/p:CLToolPath=c:\llvm\build\Release\bin\ /p:TrackFileAccess=false
/p:Platform="x64" /fileLogger ALL_BUILD.vcxproj
It barfed on an occurrence of __try but that was only in a test file so I
commented it out and retried. Now it's getting
2015 Aug 17
4
Aggregate load/stores
Even if I turn to -O0 [in other words, no optimisation passes at all], it
takes the same amount of time.
The time is spent in
12.94% lacsap lacsap [.]
llvm::SDNode::use_iterator::operator==
7.68% lacsap lacsap [.]
llvm::SDNode::use_iterator::operator*
7.53% lacsap lacsap [.]
llvm::SelectionDAG::ReplaceAllUsesOfValueWith
7.28% lacsap
2015 Jul 24
2
[LLVMdev] [lldb-dev] [3.7 Release] We have branched
On Fri, Jul 24, 2015 at 12:05 PM, Nico Weber <thakis at chromium.org> wrote:
> On Thu, Jul 16, 2015 at 8:08 AM, Nico Weber <thakis at chromium.org> wrote:
>
>> On Wed, Jul 15, 2015 at 10:45 AM, Russell Wallace <
>> russell.wallace at gmail.com> wrote:
>>
>>> Basic test results on Windows 7, visual studio 2013 (64 bit):
>>>
>>>
2016 Mar 25
2
Link error on Linux
Yeah, seems to.
a at a-VirtualBox:~$ nm /home/a/build//lib/libLLVMSupport.a | grep
ZN4llvm4outsEv
U _ZN4llvm4outsEv
U _ZN4llvm4outsEv
0000000000000000 b _ZGVZN4llvm4outsEvE1S
0000000000000000 T _ZN4llvm4outsEv
0000000000000000 r _ZZN4llvm4outsEvE19__PRETTY_FUNCTION__
0000000000000000 b _ZZN4llvm4outsEvE1S
U _ZN4llvm4outsEv
I can try building
2010 Jan 31
2
[LLVMdev] Compiling Kaleidoscope on Windows
I don't suppose anyone knows what (or how to find out what) the actual
command to compile Kaleidoscope is? I followed cmake/nmake down
through maybe half a dozen levels before getting lost, so I tried to
develop a compiler invocation from scratch. I got as far as
cl /EHsc /I\d\llvm-2.6\include /I\llvm\include /wd4355 toy.cpp
which successfully generated toy.obj and spat out 86 link time
2015 Sep 03
2
lld on Windows
C:\t>type a.c
#include <stdio.h>
int main() {
puts("hello");
return 0;
}
C:\t>cl /c a.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23026 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
a.c
C:\t>lld
Select the appropriate flavor
OVERVIEW: LLVM Linker
USAGE: lld [options] <inputs>
OPTIONS:
-core CORE linking
-flavor
2015 Feb 02
4
[LLVMdev] Compiling via bitcode on Windows
I'm trying to use Clang on Windows to compile C++ to bitcode and then to an
executable (with a view to carrying out some experiments on whole program
optimization of the bitcode).
When I use clang.exe, even with -D_HAS_EXCEPTIONS=0 -fms-compatibility
-fms-extensions, I get errors:
main-621e97.o : error LNK2019: unresolved external symbol _Unwind_Resume
referenced in function main
2015 Sep 02
2
clang-cl and exceptions
Tried a small test just now to see how exception handling on Windows is
getting on, and it seems to work except for one thing.
clang-cl /EHsc (the Microsoft compiler option to enable exceptions) doesn't
do anything; they remain disabled. However, -Xclang -fcxx-exceptions
succeeds. Is this a bug in the handling of compatibility options or am I
missing something?
-------------- next part
2015 Jul 10
2
[LLVMdev] Windows interface for clang
I've finally developed what I think is a general solution to the problem of
building existing Windows programs with clang:
https://github.com/russellw/wic
Using this, I've managed to run attempted builds of Python, Ruby and Perl.
Python 2.7 works - it generates a python.exe that at least passes a
preliminary smoke test.
Perl generates an executable that crashes partway through the
2016 Mar 25
0
Link error on Linux
Looking again at your link line, I think static library has to appear after their uses. So try to put the .o before the list of library.
--
Mehdi
> On Mar 25, 2016, at 12:41 AM, Russell Wallace <russell.wallace at gmail.com> wrote:
>
> Yeah, seems to.
>
> a at a-VirtualBox:~$ nm /home/a/build//lib/libLLVMSupport.a | grep ZN4llvm4outsEv
> U