Age | Commit message (Collapse) | Author | Files | Lines |
|
-fvar-tracking and -fvar-tracking-assignments are enabled by default when
available, so are not explicitly set here.
|
|
Previously, only ../conf style includes were excluded from expecting a fwd.hpp
file to be provided for the directory. Permit src/conf style includes too.
|
|
How did this ever work before? Did it expect there to be a previously
installed libtmwa-shared.so and run tests against that, rather than what
was just built?
|
|
This allows files that already exist to be specified relative to SRC_DIR,
rather than just relative to the current file.
This is used in tests, though it appears not to be used in main tmwa.
|
|
Also, just require the use of full paths when #including a generated file.
This fixes fresh out-of-tree builds using attoconf, and gets rid of a lot of
annoying terminal output when attoconf is tracing dependencies.
|
|
I appreciate and respect how densely packed Makefile code can be.
hahahaahahahaaa
|
|
|
|
If we want to be able to filter specific other entries, such as for the sake
of more generated files, we'll want to be doing this over a list that has
already been made relative and simplified.
|
|
A little indentation and formatting, and quite a lot of commenting,
goes a long way.
This doesn't change any code, it only reformats it.
|
|
|
|
|
|
Or more specifically, in the attoconf buildchain. attoconf itself directly
generates src/conf/install.hpp alongside Makefile, but version inforation
is only available later.
To generate version.hpp, I extended version.mk slightly to provide the recipe.
It's not anywhere near as generic as real.make tends to be, but with any luck
we'll soon be doing all builds through cmake going forward.
The template for install.hpp has been changed to use variables actually
provided by attoconf. PACKAGE{SYSCONF,LOCALSTATE}DIR are actually only defined
in real.make, and then only in terms of SYSCONFDIR and LOCALSTATEDIR, adding
`/tmwa`. It's simpler to just use the attoconf variable and adjust the
template, which conveniently also simplifies the construction in
CMakeLists.txt, too.
|
|
.mk is more widely understood than .make, for IDE usage.
|
|
C++0x was released as C++11 nearly a decade and a half ago.
My version of cmake doesn't recognize it in CMAKE_CXX_STANDARD, which
makes before/after comparison difficult.
|
|
Note how gcc uses /usr/include/gtest (default search path) as the -I for GTEST_DIR is not on the gcc command line:
System-wide gtest is 1.14 and requires C++14 while provided one is 1.8.1.
GTEST_DIR="$PWD/deps/googletest/googletest" ./configure --user
make[1]: Leaving directory '/data/users/tmwa/proj/tmw/classic/tmwa'
find: ‘doc-gen/’: No such file or directory
g++ -std=c++0x -I . -I ./include -DGENERATING_DEPENDENCIES -O2 -g
-fstack-protector -fno-strict-aliasing -fvisibility=hidden
-fvisibility=hidden -MG -MM \
-MT 'ast/item_test := ' \
-MF obj/ast/item_test.d src/ast/item_test.cpp
In file included from /usr/include/gtest/gtest-message.h:57,
from /usr/include/gtest/gtest-assertion-result.h:46,
from /usr/include/gtest/gtest.h:64,
from src/ast/item_test.cpp:21:
/usr/include/gtest/internal/gtest-port.h:270:2: error: #error C++
versions less than C++14 are not supported.
270 | #error C++ versions less than C++14 are not supported.
| ^~~~~
Makefile:331: obj/ast/item_test.d: No such file or directory
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
With pretty pictures (not a submodule because large images).
Part of this commit was originally made by Rawng.
|
|
|
|
|
|
|
|
This probably takes longer for a from-scratch compile,
but saves big on incremental recompiles.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|