http://llvm.org/bugs/show_bug.cgi?id=6213
Summary: llvm-config --cflags differ when compiled using
cmake/configure
Product: tools
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: llvm-config
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm
mkdir llvm-configure
mkdir llvm-cmake
configure:
cd llvm-configure
../llvm/configure
make
xer...@xerxes-j464x:~/llvmtest/llvm-configure/Debug/bin$ ./llvm-config --cflags
-I/home/xerxes/llvmtest/llvm-configure/../llvm/include
-I/home/xerxes/llvmtest/llvm-configure/include -D_DEBUG -D_GNU_SOURCE
-D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -g -fPIC
CMAKE:
cd llvm-cmake
cmake ../llvm
make
xer...@xerxes-j464x:~/llvmtest/llvm-cmake/bin$ ./llvm-config --cflags
-I/home/xerxes/llvmtest/llvm/include -I/home/xerxes/llvmtest/llvm-cmake/include
-D_GNU_SOURCE -fPIC -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -Wall -W
-Wno-unused-parameter -Wwrite-strings -pedantic -Wno-long-long
as can be seen cmake generated llvm-config reports totally different cflags
than the configure generated dito.
some of the options really break a lot of external projects like the -pedantic
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs