Permalink
Browse files

Only include language mode macros header when needed.

This significantly reduces the number of files that are rebuilt
when changing the language mode resulting in faster CI runtimes.

Ultimately, the better solution is to put language mode specific
functionality into a library so only building the relevant library
and relinking is necessary.
  • Loading branch information...
1 parent 50c6022 commit dab23e2ae308bb4ecac302a7ccba64ec9d1b4cdb @brixen brixen committed Jul 13, 2013
View
@@ -8,6 +8,7 @@
#include "dispatch.hpp"
#include "object_utils.hpp"
#include "ontology.hpp"
+#include "version.h"
/* Implementation certain Array methods. These methods are just
* the ones the VM requires, not the entire set of all Array methods.
View
@@ -12,6 +12,7 @@
#include "missing/math.h"
#include "object_utils.hpp"
#include "ontology.hpp"
+#include "version.h"
#define BASIC_CLASS(blah) G(blah)
#define NEW_STRUCT(obj, str, kls, kind) \
@@ -7,6 +7,7 @@
#include "call_frame.hpp"
#include "configuration.hpp"
#include "object_utils.hpp"
+#include "version.h"
namespace rubinius {
BlockAsMethod* BlockAsMethod::create(STATE, Object* self, BlockEnvironment* be) {
@@ -18,6 +18,7 @@
#include "object_utils.hpp"
#include "on_stack.hpp"
#include "ontology.hpp"
+#include "version.h"
#ifdef ENABLE_LLVM
#include "llvm/state.hpp"
View
@@ -19,6 +19,7 @@
#include "objectmemory.hpp"
#include "on_stack.hpp"
#include "ontology.hpp"
+#include "version.h"
#include <ctype.h>
#include <string.h>
View
@@ -10,6 +10,7 @@
#include "configuration.hpp"
#include "object_utils.hpp"
#include "ontology.hpp"
+#include "version.h"
#include <sstream>
View
@@ -8,6 +8,7 @@
#include "configuration.hpp"
#include "object_utils.hpp"
#include "ontology.hpp"
+#include "version.h"
namespace rubinius {
View
@@ -11,6 +11,7 @@
#include "object_utils.hpp"
#include "ontology.hpp"
#include "util/local_buffer.hpp"
+#include "version.h"
#include <gdtoa.h>
#include <ctype.h>
View
@@ -6,6 +6,7 @@
#include "object_utils.hpp"
#include "ontology.hpp"
#include "configuration.hpp"
+#include "version.h"
namespace rubinius {
View
@@ -16,6 +16,7 @@
#include "ontology.hpp"
#include "util/spinlock.hpp"
#include "windows_compat.h"
+#include "version.h"
#include <sstream>
#include <unistd.h>
View
@@ -17,6 +17,7 @@
#include "object_utils.hpp"
#include "objectmemory.hpp"
#include "on_stack.hpp"
+#include "version.h"
#include <string>
View
@@ -26,6 +26,7 @@
#include "objectmemory.hpp"
#include "object_utils.hpp"
#include "on_stack.hpp"
+#include "version.h"
#include <sstream>
View
@@ -14,6 +14,7 @@
#include "objectmemory.hpp"
#include "ontology.hpp"
#include "on_stack.hpp"
+#include "version.h"
namespace rubinius {
View
@@ -20,6 +20,7 @@
#include "object_utils.hpp"
#include "objectmemory.hpp"
#include "ontology.hpp"
+#include "version.h"
#define OPTION_IGNORECASE ONIG_OPTION_IGNORECASE
#define OPTION_EXTENDED ONIG_OPTION_EXTEND
View
@@ -25,6 +25,7 @@
#include "util/siphash.h"
#include "util/spinlock.hpp"
#include "util/random.h"
+#include "version.h"
#include <unistd.h>
#include <string.h>
View
@@ -35,6 +35,7 @@
#include "signal.hpp"
#include "windows_compat.h"
#include "util/sha1.h"
+#include "version.h"
#include "agent.hpp"
@@ -8,6 +8,7 @@
#include "instruments/timing.hpp"
#include "machine_code.hpp"
#include "object_utils.hpp"
+#include "version.h"
namespace rubinius {
BytecodeVerification::BytecodeVerification(CompiledCode* code)
View
@@ -10,6 +10,7 @@
#include "call_frame.hpp"
#include "exception_point.hpp"
#include "on_stack.hpp"
+#include "version.h"
#include "capi/capi.hpp"
#include "capi/18/include/ruby.h"
View
@@ -8,6 +8,7 @@
#include "capi/18/include/ruby.h"
#include "configuration.hpp"
+#include "version.h"
using namespace rubinius;
using namespace rubinius::capi;
View
@@ -2,6 +2,7 @@
#include "builtin/proc.hpp"
#include "configuration.hpp"
+#include "version.h"
#include "capi/capi.hpp"
#include "capi/18/include/ruby.h"
View
@@ -8,7 +8,6 @@ namespace rubinius {
class Configuration : public config::Configuration {
public:
-#include "gen/version.h"
#include "gen/config_variables.h"
void finalize() { }
View
@@ -33,6 +33,7 @@
#include "instructions.hpp"
#include "configuration.hpp"
#include "on_stack.hpp"
+#include "version.h"
#include "helpers.hpp"
View
@@ -8,6 +8,7 @@
#include "stack_variables.hpp"
#include "builtin/constantscope.hpp"
#include "builtin/module.hpp"
+#include "version.h"
#include "instruments/tooling.hpp"
@@ -4,6 +4,7 @@
#include "llvm/jit_inline_block.hpp"
#include "llvm/stack_args.hpp"
#include "llvm/method_info.hpp"
+#include "version.h"
#include "call_frame.hpp"
View
@@ -38,6 +38,7 @@
#include "lookup_data.hpp"
#include "machine_code.hpp"
#include "configuration.hpp"
+#include "version.h"
#include "gen/instruction_defines.hpp"
View
@@ -7,6 +7,7 @@
#include "builtin/poly_inline_cache.hpp"
#include "builtin/respond_to_cache.hpp"
#include "builtin/lookuptable.hpp"
+#include "version.h"
#include "llvm/jit_operations.hpp"
#include "llvm/inline.hpp"
View
@@ -62,6 +62,7 @@
#include "configuration.hpp"
#include "config.h"
#include "release.h"
+#include "version.h"
#include "ontology.hpp"
View
@@ -17,6 +17,7 @@
#include "builtin/array.hpp"
#include "builtin/thread.hpp"
#include "builtin/nativemethod.hpp"
+#include "version.h"
#include <iostream>
#include <iomanip>
View
@@ -1,6 +1,7 @@
#include "symboltable.hpp"
#include "exception.hpp"
#include "configuration.hpp"
+#include "version.h"
#include "builtin/array.hpp"
#include "builtin/encoding.hpp"
View
@@ -3,6 +3,7 @@
#include "configuration.hpp"
#include "builtin/exception.hpp"
#include "builtin/list.hpp"
+#include "version.h"
class TestFixnum : public CxxTest::TestSuite, public VMTest {
public:
@@ -1,4 +1,5 @@
#include "vm/test/test.hpp"
+#include "version.h"
class TestObjects : public CxxTest::TestSuite, public VMTest {
public:
View
@@ -2,6 +2,7 @@
#include "builtin/encoding.hpp"
#include "builtin/string.hpp"
+#include "version.h"
class TestString : public CxxTest::TestSuite, public VMTest {
public:
@@ -3,6 +3,7 @@
#include "symboltable.hpp"
#include "configuration.hpp"
#include "builtin/array.hpp"
+#include "version.h"
#include <algorithm>
#include <vector>

0 comments on commit dab23e2

Please sign in to comment.