node error #41

Closed
MAP94 opened this Issue Jun 21, 2012 · 1 comment

Projects

None yet

2 participants

MAP94 commented Jun 21, 2012

error: node 'hash.cpp' is depended on itself and is produced by a job

There should be a way to turn off this error.

Example:
a job produces a md5 hash of file.cpp and saves it to hash.cpp

//version.h
#ifndef NON_HASED_VERSION
    #include "generated/hash.cpp"
    #define GAME_LUA_VERSION_HASH "1.3 " GAME_LUAVERSION_HASH
#endif
#define GAME_LUA_VERSION "1.3"
//file.cpp
#define NON_HASED_VERSION
#include "version.h"
#undef NON_HASED_VERSION

In this case the hased data wont be included

Owner

No. If you have a job that is dependent on itself you have done something wrong. Why is hash.cpp dependent on itself?

@matricks matricks closed this Jul 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment