Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
28 views

Can't set -fbracket-depth parameter for PYMC model compilation

I'm trying to train a pymc model (version 4.4.0) on a Mac. My model is fairly complex and it seems like the current level of complexity is causing the compiler some issues because I'm getting this ...
Jed's user avatar
  • 2,060
-2 votes
1 answer
849 views

Add compile flags per default clang++

I want to add some flags per default, so as not to type them at each compilation. is there any way to add compile flags per default ? Like optimisation flags or whatever. I found a solution with alias,...
user avatar
7 votes
1 answer
857 views

What does clang++'s option -fno-strict-enums do?

Two months ago, I reported, as a clang++ bug, that the C++ program below sets z to 4294967295 when compiled with clang++ -O2 -fno-strict-enums. enum e { e1, e2 } e; long long x, y, z; char *p; void ...
Pascal Cuoq's user avatar
  • 80.2k
0 votes
1 answer
982 views

how to change std flag of clang in mac? current clang version 10.0.1 is using c++98 flag

Though documentation of clang says version 10.0.1 uses c++11 but I am trying to compile c++ programs using clang compiler and clang compiler explicitly need -std=c++11 flag to compile with c++11 ...
user avatar
0 votes
0 answers
1k views

Why doesn't -fno-asynchronous-unwind-tables have any effect on a program with no exceptions, clang++?

This is a followup question to -fno-unwind-tables and -fno-asynchronous-unwind-tables does not work NDK clang++ but with a different piece of code and a different question. Building with Clang++ that ...
rstr1112's user avatar
  • 418
2 votes
1 answer
2k views

-fno-unwind-tables and -fno-asynchronous-unwind-tables does not work NDK clang++

I'm compiling my C++ code using clang++ that comes with ndk21. I've set both compiler flags -fno-unwind-tables and -fno-asynchronous-unwind-tables but the number of entries in the unwind table do not ...
rstr1112's user avatar
  • 418
6 votes
1 answer
4k views

What are the common problems in switching from GCC to Clang?

Suppose my C++ is standard-compliant and I don’t rely on third-party libraries, what are the usual pitfalls encountered when replacing “g++” to “clang++” in the makefile? Like incompatible compiler ...
Leedehai's user avatar
  • 3,930
35 votes
2 answers
9k views

Why can't clang enable all sanitizers?

Clang has various sanitizers that can be turned on to catch problems at runtime. However, there are some sanitizers that I can't use together. Why is that? clang++-3.9 -std=c++1z -g -fsanitize=...
Trevor Hickey's user avatar
2 votes
0 answers
406 views

Changing wchar_t from 32 bit to 16bit in iOS

I am porting a windows application to iOS platform. In the c++ code, the wchar_t is widely used instead of using wchar16_t or wchar32_t. The application is coded in such a way in windows assuming the ...
Govind's user avatar
  • 2,348