forked from jamplus/jamplus
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test case for PCH not working with GCC
- Loading branch information
scraft
committed
Aug 3, 2010
1 parent
93a2909
commit bdb07ef
Showing
7 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
@ECHO OFF | ||
PUSHD %~dp0 | ||
jam --workspace -gen=vs2005 -compiler=vs2005 -config=GenerateWorkSpaceVs2005.config Source/Jamfile.jam Build | ||
if "%ERRORLEVEL%" == "0" ( | ||
ECHO %~dp0Build\_workspace.vs2005_\precompiled_header_deps.sln > %~dp0\EditWorkSpaceVs2005.bat | ||
) else ( | ||
pause | ||
) | ||
POPD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Config = | ||
{ | ||
Platforms = { 'win32', 'ps3' }, | ||
Configurations = { 'debug' } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
PRECOMPILED_HEADER_DEPS_SRCS = | ||
main.cpp | ||
system.h | ||
; | ||
|
||
PRECOMPILED_HEADER_DEPS_PCH_SRCS = | ||
pch.cpp | ||
pch.h | ||
; | ||
|
||
C.PrecompiledHeader precompiled_header_deps : $(PRECOMPILED_HEADER_DEPS_PCH_SRCS) : $(PRECOMPILED_HEADER_DEPS_SRCS) ; | ||
AutoSourceGroup precompiled_header_deps : $(PRECOMPILED_HEADER_DEPS_SRCS) $(PRECOMPILED_HEADER_DEPS_PCH_SRCS) ; | ||
|
||
C.Application precompiled_header_deps : $(PRECOMPILED_HEADER_DEPS_SRCS) $(PRECOMPILED_HEADER_DEPS_PCH_SRCS) ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
int main( ) | ||
{ | ||
|
||
return SystemAdd( 1, 2 ); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#include "pch.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#include "system.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#ifndef __SYSTEM_H__ | ||
#define __SYSTEM_H__ | ||
|
||
static inline int SystemAdd( int a, int b ) { return a + b; } | ||
|
||
#endif |