Compilation changes

Few compile time attempts to speed things up

Swap include guards for pramga once
Change compile options in the cmakeLists for source
generate a pch

small tweaks
This commit is contained in:
marauder2k7 2026-05-21 23:55:35 +01:00
parent 0df3bea9ca
commit 68e762130d
1016 changed files with 2848 additions and 5532 deletions

View file

@ -19,6 +19,8 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
// IN THE SOFTWARE.
//-----------------------------------------------------------------------------
#pragma once
#pragma once
#ifndef _AST_H_
#define _AST_H_

View file

@ -19,6 +19,8 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
// IN THE SOFTWARE.
//-----------------------------------------------------------------------------
#pragma once
#pragma once
#ifndef _CODEBLOCK_H_
#define _CODEBLOCK_H_

View file

@ -19,6 +19,8 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
// IN THE SOFTWARE.
//-----------------------------------------------------------------------------
#pragma once
#pragma once
#ifndef _COMPILER_H_
@ -41,10 +43,7 @@ class DataChunker;
#include "platform/platform.h"
#include "ast.h"
#include "codeBlock.h"
#ifndef _TVECTOR_H_
#include "core/util/tVector.h"
#endif
//------------------------------------------------------------

View file

@ -1,4 +1,5 @@
#ifndef _TORQUESCRIPT_PARSER_H_
#pragma once
#ifndef _TORQUESCRIPT_PARSER_H_
#define _TORQUESCRIPT_PARSER_H_
#include <cstdio>

View file

@ -1,4 +1,5 @@
#ifndef _TORQUESCRIPT_RUNTIME_H_
#pragma once
#ifndef _TORQUESCRIPT_RUNTIME_H_
#define _TORQUESCRIPT_RUNTIME_H_
#include "ast.h"
#include "console/runtime.h"