Displaying 20 results from an estimated 60 matches for "ehsc".
2013 Oct 07
3
[LLVMdev] [lld][Windows] Warning during builds
C:\Program Files (x86)\Microsoft Visual Studio
11.0\VC\include\concrt.h(313): warning C4530: C++ exception handler
used, but unwind semantics are not enabled. Specify /EHsc
(C:\lld-x86_64_win7\lld-x86_64-win7\llvm.src\tools\lld\lib\ReaderWriter\ELF\Hexagon\HexagonLinkingContext.cpp)
[C:\lld-x86_64_win7\lld-x86_64-win7\llvm.obj\tools\lld\lib\ReaderWriter\ELF\Hexagon\lldHexagonELFTarget.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio
11.0\VC\include\concrt.h(...
2019 Feb 20
2
How to build xapian 1.4.10 with MSVC2017
...still cann't find 'cl'.
Finally I fix it, change msys2_shell.cmd: "if it is present: replace rem set MSYS2_PATH_TYPE=inherit with set MSYS2_PATH_TYPE=inherit".
And other errors :
# ./configure CC="cl -nologo" CXX="$PWD/compile cl -nologo" CXXFLAGS="-EHsc AR=lib -IC:\zlib-1.2.3-lib\include LDFLAGS=-LC:\zlib-1.2.3-lib\lib" --prefix="C:\xapian-install"
configure: loading site script /etc/config.site
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe...
2013 Oct 07
0
[LLVMdev] [lld][Windows] Warning during builds
On Sun, Oct 6, 2013 at 8:21 PM, Shankar Easwaran <shankare at codeaurora.org>wrote:
> C:\Program Files (x86)\Microsoft Visual Studio
> 11.0\VC\include\concrt.h(313): warning C4530: C++ exception handler used,
> but unwind semantics are not enabled. Specify /EHsc
> (C:\lld-x86_64_win7\lld-x86_**64-win7\llvm.src\tools\lld\**
> lib\ReaderWriter\ELF\Hexagon\**HexagonLinkingContext.cpp)
> [C:\lld-x86_64_win7\lld-x86_**64-win7\llvm.obj\tools\lld\**
> lib\ReaderWriter\ELF\Hexagon\**lldHexagonELFTarget.vcxproj]
> C:\Program Files (x86)\Microsoft Vis...
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 --------------
An HTML attachment was scrubbed.....
2019 Feb 21
1
How to build xapian 1.4.10 with MSVC2017
Thank you very much,It works!
And some Q&A I meet,may help somebody:
1. If zlib build with 32bit,should use MSVC's 'vcvars32.bat';
2. Add '-Z7' to CXXFLAGS can release *.pdb file for VS2017 'Step Into' debug, such as: CXXFLAGS="-EHsc -Z7";
3. If Somebody write a demo in VS2017
3.1 change libxapian.a's name to libxapian.lib;
3.2 make sure the Runtime Library is /MT, can change it at project property page, C/C++-->Code Generation-->Runtime Library;
3.3 add Rpcrt4.lib and Ws2_32.lib to linker input;
3.4 copy z...
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 error
messages -- as expected, it needs the libraries specified.
cmakelists.txt says set(LLVM_LINK_COMPONENTS core jit interpreter
native) so I made a guess at the .lib file corresp...
2019 Feb 20
1
How to build xapian 1.4.10 with MSVC2017
hi, I have read the install document,https://github.com/xapian/xapian/blob/v1.4.10/xapian-core/INSTALL,but don't how to build xapian project by MSVC.
I execute command in mingw64.exe: ./configure CC="cl -nologo" CXX="$PWD/compile cl -nologo" CXXFLAGS=-EHsc AR=lib
has some errors:
# ./configure CC="cl -nologo" CXX="$PWD/compile cl -nologo" CXXFLAGS=-EHsc AR=lib
configure: loading site script /mingw64/etc/config.site
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
check...
2014 Oct 23
2
[LLVMdev] compiler-rt with MSVC 2013
...MPILER E$:\llvm\compiler-rt\lib\asan\asan_malloc_win.cc
> DEFINES = -DASAN_DYNAMIC=1 -DASAN_HAS_EXCEPTIONS=1
> -DINTERCEPTION_DYNAMIC_CRT -D__func__=__FUNCTION__
> DEP_FILE = lib/asan/CMakeFiles/RTAsan_dynamic.i386.dir/asan_malloc_win.cc.obj.d
> FLAGS = /DWIN32 /D_WINDOWS /W3 /GR /EHsc /W3 /MT /O2 /Ob2 /D NDEBUG
> -IE:\llvm\compiler-rt\lib\asan\.. /machine:X86 /DWIN32
> /D_WINDOWS /W3 /GR /EHsc /W3 /Oy- /GS- /VERBOSE /Zi /wd4391 /wd4722
> /wd4291 /wd4800 /GR- /DEBUG
> OBJECT_DIR = lib\asan\CMakeFiles\RTAsan_dynamic.i386.dir
> TARGET_PDB = ""
>...
2010 Jan 31
0
[LLVMdev] Compiling Kaleidoscope on Windows
...t; 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 error
> messages -- as expected, it needs the libraries specified.
> cmakelists.txt says set(LLVM_LINK_COMPONENTS core jit interpreter
> native) so I made a guess...
2009 May 21
0
VC2010 (VC10) can't use /Zi option
wine is 1.1.21
I use VC10 beta1 compiler on window, and it's work fine.
The Windows is pure: not install any software.
That mean is: The VC 10 is a portable software.
I can compile main.cpp use:
./cl.exe /EHsc main.cpp
it's OK! the main.exe created!
but if i do:
./cl.exe /EHsc /Zi main.cpp
it's fair.
the error information is:
> loaden at qpsoft:~/qpcb/bin$ ./cl.exe /EHsc /Zi main.cpp
> fixme:heap:HeapSetInformation 0x540000 0 0x32fd88 4
> fixme:heap:HeapSetInformation (nil) 1 (nil)...
2019 Feb 21
0
How to build xapian 1.4.10 with MSVC2017
...".
OK, I'll note that in the instructions.
It looks like you can also enable this option as a one-off by passing
-use-full-path:
msys2_shell.cmd -use-full-path
> And other errors :
> # ./configure CC="cl -nologo" CXX="$PWD/compile cl -nologo" CXXFLAGS="-EHsc AR=lib -IC:\zlib-1.2.3-lib\include LDFLAGS=-LC:\zlib-1.2.3-lib\lib" --prefix="C:\xapian-install"
Your quoting is wrong here - there's no closing quote on CXXFLAGS, so this
sets CXXFLAGS to the value:
-EHsc AR=lib -IC:\zlib-1.2.3-lib\include LDFLAGS=-LC:\zlib-1.2.3-lib\lib...
2019 Oct 28
3
How to Switch to Static Runtime and Enable C++ Exceptions?
I would really like to know about how to apply the patch for making MSVC-built LLVM executables lighter. But aside from that, I also want to know what LLVM does to CMake's default setting of /EHsc. I want to keep that setting on, but I can't figure out how. Any help is appreciated. Thanks in advance. P.S. The CMAKE_CXX_FLAGS variable isn't helping at all, otherwise I wouldn't be asking this.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <h...
2019 Oct 28
2
How to Switch to Static Runtime and Enable C++ Exceptions?
...ed to know how to switch to a static runtime. I've tried setting LLVM's variable for this, but it didn't work. I still have a dynamic runtime. Along with that, I also need to know how to enable C++ exceptions.
One thing I tried was to do "-DCMAKE_CXX_FLAGS="/std:c++17 /MT /EHsc /permissive-"" but this also didn't work. Specifying these on the CXXFLAGS environment variable didn't do anything either. I was using the same session of the Developer Command Prompt, but I made sure to run "refreshenv" to take the new environment from the registry be...
2014 Oct 23
2
[LLVMdev] compiler-rt with MSVC 2013
On Thu, Oct 23, 2014 at 3:38 PM, Aaron Ballman <aaron at aaronballman.com> wrote:
> On Thu, Oct 23, 2014 at 2:57 PM, Aaron Ballman <aaron at aaronballman.com> wrote:
>> On Thu, Oct 23, 2014 at 2:46 PM, Timur Iskhodzhanov <timurrrr at google.com> wrote:
>>> 2014-10-23 11:34 GMT-07:00 Aaron Ballman <aaron at aaronballman.com>:
>>>> On Thu, Oct
2019 Jun 25
3
Potential missed optimisation with SEH funclets
...an entire function frame just for the destructor call:
mov qword ptr [rsp + 16], rdx
push rbp
.seh_pushreg 5
sub rsp, 32
.seh_stackalloc 32
Lea rbp, [rdx + 48]
.seh_endprologue
Lea rcx, [rbp - 16]
call "??1MyClass@@QEAA at XZā
nop
add rsp, 32
pop rbp
ret
Both were compiled with ā/c /O2 /MD /EHscā
Is LLVM missing a major optimisation here?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190625/1bfc0cd5/attachment.html>
2016 Jan 21
2
Propagation of foreign c++ exceptions (msvc, x64, llvm 3.7.1, MCJIT) through IR code
...y if you wish to link against LLVM libraries and make use of C++
exceptions in your own code that need to propagate through LLVM code.
Defaults to OFF.
It seems to be exactly what I require.
I enabled LLVM_ENABLE_EH and LLVM_ENABLE_RTTI but it doesn't seems to work.
I also tested it with /EHs /EHsc in msvc. It makes no difference
I also looked at the ExceptionDemo.cpp, but it seems to be unsupported
under windows. Do I need to try catch and retrhow in my ir_func() ?
Regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/l...
2004 Oct 12
3
[LLVMdev] Showstopper on Visual C
Hi all,
Well, suggestion for workarounds for the namespace problems are
welcome... this is a 7 minutes compile files on a pentium 4 3ghz 700Mb
ram...
The fatal error at the end MAY depend on the previous... or at least, I
hope so.
cl /nologo /TP /EHsc /GR /Zi /Yd /D__STDC_LIMIT_MACROS
/DHAVE__FINITE_IN_FLOAT_H /DHAVE__ISNAN_IN_FLOAT_H
/ISTLport-4.6.2\stlport /Illvm\inc
lude /Itablegen_includes /c llvm\lib\Target\X86\X86AsmPrinter.cpp
/Fobuild_vc71\lib\Target\X86\X86AsmPrinter.obj X86AsmPrinter.cpp
tablegen_includes\X86GenIntelAsmWriter.inc(1...
2019 Feb 22
0
How to build xapian 1.4.10 with MSVC2017
...which "it" worked?
I had install mingw earlier, but not set it to $PATH, so must be 'LD=link' and your previous advices on "CXXFLAGS" .
I execute configure like this:
./configure LD=link CC="cl -nologo" CXX="$PWD/compile cl -nologo" CXXFLAGS="-EHsc -Z7" AR=lib CPPFLAGS=-IC:/zlib-1.2.3-lib/include LDFLAGS="-LC:/zlib-1.2.3-lib/lib" --prefix="C:/xapian-install"
>> 3.1 change libxapian.a's name to libxapian.lib;
And sorry,I check again, '3.1 change libxapian.a's name to libxapian.lib;' is not neces...
2015 Jul 22
2
[LLVMdev] is it impossible to use the external llvm custom pass on windows?
...(llvm::Module &M);
};
bool SampleIRModule::runOnModule(llvm::Module &M) {
M.dump();
return false;
}
char SampleIRModule::ID = 0;
static RegisterPass<SampleIRModule> X("SampleIRModule", "SampleIRModule
Pass");
And,here is my build command on windows.
cl /EHsc -ID:\LLVM\llvm-3.4.2\build_nmake\output/include
-D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS
-D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS
-D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -wd4146 -wd4180
-wd4244 -wd4267 -wd4345 -wd4351 -wd4355 -wd4503 -wd4624 -wd4800 -wd4291
-w...
2014 Oct 02
2
[LLVMdev] Header File Not Found?
...lude-sub-dir]
/Zi /nologo /W3 /WX- /Od /D WIN32 /D _DEBUG /D _WINDOWS /D _USRDLL /D
[elided] /D _t_env_os_WIN32 /D [also-elided] /D _SCL_SECURE_NO_WARNINGS
/D _CRT_SECURE_NO_WARNINGS /D OBJC_OLD_DISPATCH_PROTOTYPES=1 /D _WIN64
/D "__x86_64__= 1" /D _WINDLL /D _UNICODE /D UNICODE /Gm- /EHsc /RTC1
/MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"Debug\x64\\"
/Fd"Debug\x64\vc120.pdb" /Gd /TP /wd4068 /wd4200 /wd4244 /wd4267 /wd4305
/wd4309 /wd4311 /wd4800
/FIC:\[top-level-dir]\[source-dir]\\[prefix-header].h
/errorReport:prompt -m64 -fmsc-version=1800 -ferror-li...