José Fonseca
9ea277ba7a
scons: Don't require -liberty on MinGW.
Not always present.
16 vuotta sitten
José Fonseca
1a9eec84bd
scons: Drop gprof support for profile builds; tweak optimization flags instead.
gprof is useful for shared libraries, hence our drivers. Nevertheless
profilers like oprofile can benefit from disabling some relatively
minor optimizations for more accurate / complete results.
16 vuotta sitten
José Fonseca
459ea0095c
llvmpipe: Make the code portable for MinGW.
16 vuotta sitten
José Fonseca
d3f5a2e5ab
scons: Allow to use only the WINDDK headers.
16 vuotta sitten
José Fonseca
a4a4553a80
scons: Allow to use MS's DXSDK headers with MinGW.
16 vuotta sitten
José Fonseca
b0b131b023
scons: Pass -mstackrealign option to gcc.
It is impossible to have gcc generate SSE code without it, as thirdparty
applications often call us with an unaligned stack pointer.
16 vuotta sitten
Vinson Lee
79f48c9f9e
scons: Don't set LLVM_VERSION if one of the llvm-config calls fails.
Ubuntu 8.10 has llvm-config version 2.2, which doesn't have
nativecodegen. This triggers an exception.
16 vuotta sitten
José Fonseca
9216b4e7be
scons: Used wrong exception class.
16 vuotta sitten
José Fonseca
b9f56078cd
scons: Don't use scons internal functions.
16 vuotta sitten
José Fonseca
836a9f0ae6
scons: Tool for LLVM. Gracefully disable llvmpipe if LLVM not found.
16 vuotta sitten
José Fonseca
556eecea67
llvmpipe: Allow to build without udis86.
16 vuotta sitten
José Fonseca
7b39194e2d
scons: Handle Circular dependencies in the libraries.
16 vuotta sitten
José Fonseca
7325c1ebc8
scons: Monkey patch os.spawnve on Windows to become thread safe.
See also:
- http://bugs.python.org/issue6476
- http://scons.tigris.org/issues/show_bug.cgi?id=2449
16 vuotta sitten
José Fonseca
9a5ee12434
scons: Don't raise an exception when DXSDK is not found.
Unfortunately scons does not check if a tool exists before it invokes
its generate function.
17 vuotta sitten
José Fonseca
bb8f3090ba
scons: Disable optimizations only for gcc-4.2
gcc-4.2's optimizer has a strange bug where it looses code from inner
loops in certain situations. For example, if the appearently innocent
looking code below is compiled with gcc-4.2 -S -O1, the inner loop's
code is missing from the outputed assembly.
struct Size {
unsigned width;
};
struct Command {
unsigned length;
struct Size sizes[32];
};
extern void emit_command(void *command, unsigned length);
void
create_surface( struct Size size, unsigned faces, unsigned levels)
{
struct Command cmd;
unsigned face;
unsigned level;
cmd.length = faces*levels*sizeof(cmd.sizes[0]);
for(face = 0; face < faces; ++face) {
for(level = 0; level < levels; ++level) {
cmd.sizes[face*levels + level] = size;
// This should generate a shrl statement, but the whole for body
// disappears in gcc-4.2 -O1/-O2/-O3!
size.width >>= 1;
}
}
emit(&cmd, sizeof cmd.length + cmd.length);
}
Note that this is not specific to MinGW's gcc-4.2 crosscompiler (the
version typically found in debian/ubuntu's mingw32 packages). gcc-4.2 on
Linux also displays the same error. gcc-4.3 and above gets this
correctly though.
Updated MinGW debian packages with gcc-4.3 are available from
http://people.freedesktop.org/~jrfonseca/debian/pool/main/m/
17 vuotta sitten
José Fonseca
72ad039d19
scons: Use -Bsymbolic linker option.
This prevents the error
relocation R_X86_64_PC32 against symbol `_gl_DispatchTSD' can not be used when making a shared object; recompile with -fPIC
when building on x86_64 architecture.
17 vuotta sitten
José Fonseca
72aed16aee
scons: Tool to build with DirectX SDK.
Also works with MinGW, as long as the path to the DirectX SDK top
directory is set in the DXSDK_DIR environment variable.
17 vuotta sitten
José Fonseca
25f6c936fe
scons: Don't use C specific options with g++
17 vuotta sitten
José Fonseca
3cf92e936a
scons: Output the friendly "Linking ..." message when creating DLLs with MinGW.
17 vuotta sitten
José Fonseca
c6f71eabd8
Revert "scons: Debug build by default."
Per Brian's request.
This reverts commit 25f0c33bb3 .
17 vuotta sitten
José Fonseca
25f0c33bb3
scons: Debug build by default.
Match what autotools and other build systems do by default.
17 vuotta sitten
Michel Dänzer
550a2fe1b7
scons: Indent abbreviated command line strings, so command messages stand out.
Also add ASPPCOMSTR.
17 vuotta sitten
José Fonseca
78dad27564
Revert "scons: Less aggressive optimizations for MSVC 64bit compiler."
This reverts commit fc7f924782 .
17 vuotta sitten
José Fonseca
fc7f924782
scons: Less aggressive optimizations for MSVC 64bit compiler.
MSVC 64bit compiler takes forever on some of the files.
Might want to revisit this again later.
17 vuotta sitten
José Fonseca
0f50c4fab8
scons: Output nice summary messages instead of long command lines.
You can still get the old behavior by passing the option quiet=no to scons.
17 vuotta sitten
Keith Whitwell
222d7841e9
scons: mingw is broken with -O1 and higher
17 vuotta sitten
Keith Whitwell
5f5181021e
scons: mingw is broken with -O1 and higher
17 vuotta sitten
José Fonseca
56c2cd7ae2
scons: Cleanup.
17 vuotta sitten
José Fonseca
71793e0f79
scons: Support winddk 6001.18002.
17 vuotta sitten
José Fonseca
5ccbccb3c1
scons: Recent Windows DDK do not include LIB.EXE.
Have to use LINK /LIB instead. The biggest problem is when the command
line is very long and all the options are included in a argument file --
link doesn't like if /LIB is included in the argument file.
17 vuotta sitten
José Fonseca
a20bae3d17
scons: Get python extensions building correctly on windows.
17 vuotta sitten
José Fonseca
b3e03ede3e
scons: Move MSVC specific away from Mingw builds.
17 vuotta sitten
José Fonseca
26e27ba308
scons: Support building with the Windows SDK.
x86_64 is also supported.
17 vuotta sitten
José Fonseca
102cb5c9cd
scons: Promote declaration-after-statement to error. Detect more warnings.
17 vuotta sitten
José Fonseca
f22574be95
scons: Use -Wdeclaration-after-statement
17 vuotta sitten
José Fonseca
34e719c9b3
scons: Don't build the DRI drivers in a seperate dir.
DRI drivers can be build side by side with other non-DRI drivers, therefore
there is no need to build gallium twice.
17 vuotta sitten
José Fonseca
af3ab2d9f3
scons: Use a cache for built files.
Like ccache, but works on all OSes.
17 vuotta sitten
José Fonseca
46728037a0
scons: Produce map files for debug builds too.
17 vuotta sitten
José Fonseca
6fe421cf46
scons: Unbreak mingw builds.
17 vuotta sitten
José Fonseca
73ccabc124
scons: Build DLLs/EXEs with more memory debugger friendlier settings.
17 vuotta sitten
José Fonseca
1e8177ee17
scons: Use parallel builds by default.
17 vuotta sitten
José Fonseca
9aa73cfae8
progs: Get more samples building on windows.
17 vuotta sitten
Keith Whitwell
9a7aeac49c
scons: remove pedantic flag
17 vuotta sitten
José Fonseca
3d607ef37f
scons: Request the stabs debug info format for Mingw.
Mingw gdb apparently chokes on dwarf debug info.
17 vuotta sitten
José Fonseca
9bf83fb016
scons: Build the progs into seperate dirs as well.
17 vuotta sitten
José Fonseca
017892636a
scons: Use --enable-stdcall-fixup only when building DLLs.
17 vuotta sitten
José Fonseca
9bd39eb3af
scons: Don't build the DRI drivers in a seperate dir.
DRI drivers can be build side by side with other non-DRI drivers, therefore
there is no need to build gallium twice.
17 vuotta sitten
José Fonseca
18170bb51b
scons: Use a cache for built files.
Like ccache, but works on all OSes.
17 vuotta sitten
José Fonseca
de29f5781a
scons: Allow to specify the MSVS version on command line.
17 vuotta sitten
José Fonseca
42be0104a2
scons: Don't define UNICODE on windows builds.
It creates problems in many libraries (glut, glew) which are not unicode
aware.
17 vuotta sitten