Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
296 commits
Select commit Hold shift + click to select a range
9ac5678
Refactor linting conditions to simplify checks for const variable dec…
profelis Apr 14, 2025
b81d593
Merge pull request #1637 from profelis/master
borisbat Apr 15, 2025
04c6b67
handle move initialization
borisbat Apr 15, 2025
6878d09
Merge pull request #1638 from GaijinEntertainment/towards_better_linter
borisbat Apr 15, 2025
a5ff4ef
fix enum ;
aleksisch Apr 16, 2025
f38bbd3
Merge pull request #1635 from aleksisch/feature/multline-exprs-wrapping
borisbat Apr 16, 2025
74f24fc
gc checks before collect
borisbat Apr 17, 2025
1f6b4f6
upsie
borisbat Apr 17, 2025
eafa89c
Merge pull request #1639 from GaijinEntertainment/heap_collect
borisbat Apr 17, 2025
e71194b
[WIP] updating documentation to gen2
borisbat Apr 22, 2025
1cb25a6
no message
borisbat Apr 22, 2025
e27d86e
Change thread local interface
reOiL Apr 22, 2025
bbd4ed3
Fix compilation error with microsoft include
reOiL Apr 22, 2025
489c903
Change thread local interface
reOiL Apr 22, 2025
efe5672
Merge pull request #1645 from reOiL/thread__local_fix2
borisbat Apr 22, 2025
d5e569d
Merge pull request #1644 from reOiL/fix_float_naming2
borisbat Apr 22, 2025
fb6a901
and now we support , after type declaration
borisbat Apr 23, 2025
f82f4c9
and the rest of the parsers
borisbat Apr 23, 2025
6bf09f6
Merge pull request #1646 from GaijinEntertainment/small_miracles
borisbat Apr 23, 2025
0920de6
Add support for version 2 make syntax and update command-line options
profelis Apr 23, 2025
f8d8ae2
add missing `options gc`
profelis Apr 23, 2025
03152c5
Merge pull request #1647 from profelis/master
borisbat Apr 23, 2025
2e2502e
empty ctor are no longer generated
borisbat Apr 24, 2025
7b42e63
with retry
borisbat Apr 24, 2025
e81ec21
actual ping-pong
borisbat Apr 24, 2025
f3ef7b0
Merge pull request #1648 from GaijinEntertainment/no-empty-ctor
borisbat Apr 24, 2025
eb08a93
convert [[ ]] to fixed_array instead of array
aleksisch Apr 24, 2025
0c34723
and just like that
borisbat Apr 24, 2025
264eba5
Merge pull request #1650 from GaijinEntertainment/no-empty-ctor
borisbat Apr 24, 2025
3ab5f8f
Merge pull request #1649 from aleksisch/formatter/fix-fixed_arrays
borisbat Apr 24, 2025
0fd3698
verify dead write
borisbat Apr 25, 2025
9e2e5db
Merge pull request #1651 from GaijinEntertainment/dead-write
borisbat Apr 25, 2025
0525398
make modules traversal deterministic
aleksisch Apr 28, 2025
9cb28e9
Merge pull request #1652 from aleksisch/fix/deterministic-module-trav…
borisbat Apr 28, 2025
7055165
Merge branch 'master' into doc-wip
borisbat Apr 28, 2025
33a41ce
array documentation
borisbat Apr 28, 2025
8f916b3
bitfields
borisbat Apr 28, 2025
de54b82
blocks
borisbat Apr 28, 2025
6fa36f5
classes
borisbat Apr 29, 2025
28bbe91
clone
borisbat Apr 29, 2025
15d47fe
comprehensions, constants
borisbat Apr 29, 2025
0eb5351
else one-liners
borisbat Apr 29, 2025
0588784
move builtin string methods to c++ from das
aleksisch Apr 29, 2025
5502481
Merge pull request #1653 from GaijinEntertainment/else_one_liners
borisbat Apr 29, 2025
33760aa
for loop iterator expansion in new syntax
borisbat Apr 30, 2025
c5ae48c
Merge branch 'master' into for_loop_goo
borisbat Apr 30, 2025
5d9019c
Merge pull request #1654 from aleksisch/feature/string-methods-in-cpp
borisbat Apr 30, 2025
bd9415e
upsie
borisbat Apr 30, 2025
c75b619
use type mangled name hash instead of pointer address in apply macro …
aleksisch Apr 30, 2025
396c436
Merge pull request #1656 from aleksisch/fix/deterministic-apply-hash
borisbat Apr 30, 2025
9f47ee4
implement missing bindings
aleksisch Apr 29, 2025
a6081e0
implement ast_aot_cpp on das side
aleksisch Apr 29, 2025
9692b27
fix is/as for functions and annotations
aleksisch Apr 29, 2025
93950b8
Merge pull request #1655 from GaijinEntertainment/for_loop_goo
borisbat May 1, 2025
9c1ca79
to_lower and to_upper now survives string interning
borisbat May 1, 2025
2fbb21f
Merge pull request #1658 from GaijinEntertainment/intern-safe-strings
borisbat May 1, 2025
94f5694
Foo() into default<Foo> for aliases
borisbat May 1, 2025
0c7243a
Merge pull request #1659 from GaijinEntertainment/default_alias
borisbat May 1, 2025
54d63e2
Merge branch 'master' into doc-wip
borisbat May 2, 2025
25c5cf3
context
borisbat May 2, 2025
23e865d
finalizers and functions
borisbat May 2, 2025
16096c9
generators
borisbat May 2, 2025
1f9192e
generic programming
borisbat May 2, 2025
5eb9189
iterators
borisbat May 2, 2025
9fb46e2
lambda
borisbat May 2, 2025
39aeb00
macros
borisbat May 2, 2025
181e353
modules and pattern matching
borisbat May 2, 2025
d5f1df7
reification
borisbat May 2, 2025
94a1ed7
structs and tables
borisbat May 3, 2025
0ee9c2a
and the remainder.
borisbat May 3, 2025
3382021
Merge pull request #1642 from GaijinEntertainment/doc-wip
borisbat May 3, 2025
ef3e263
platform independent tmp
borisbat May 5, 2025
2b9c4b2
Merge branch 'GaijinEntertainment:master' into master
reOiL May 5, 2025
ef5b31f
Fix warning in printf with uint64_t
reOiL May 5, 2025
61dc613
Added semicolon support for formater and fix tmp file path
reOiL May 5, 2025
cef619a
Fix few bugs
aleksisch May 5, 2025
ff7be55
Added basic install & build guide in readme
reOiL May 5, 2025
7152115
Initial new thread local wrapper
reOiL May 5, 2025
f398d72
handle enum semicolons
aleksisch May 5, 2025
abd57e0
Merge pull request #1641 from aleksisch/feature/ast-aot-cpp-das
borisbat May 5, 2025
8248674
Merge pull request #1661 from GaijinEntertainment/doc-wip
borisbat May 5, 2025
5f4c0ce
Merge pull request #1666 from aleksisch/formatter/remove-enum-semicolons
borisbat May 5, 2025
48df9fc
Merge pull request #1665 from reOiL/update_readme
borisbat May 5, 2025
2b3c4ef
Merge pull request #1663 from reOiL/fix_printf_int64
borisbat May 5, 2025
0447d13
Merge pull request #1662 from aleksisch/fixes/fix-formatter
borisbat May 5, 2025
ad59727
Merge branch 'master' into format_semicolon
borisbat May 5, 2025
89ff09d
Merge pull request #1664 from reOiL/format_semicolon
borisbat May 5, 2025
689dd54
Move program bounded to new thread local interface
reOiL May 6, 2025
cba41c8
Remove DAS_THREAD_LOCAL2 because now all thread local
reOiL May 6, 2025
7e4f156
Change tag type to unsigned long long
reOiL May 6, 2025
6556c48
Fix build
reOiL May 6, 2025
7fd1cb4
Merge branch 'master' into thread_local_wrap
reOiL May 6, 2025
7291646
Fix build after update
reOiL May 6, 2025
47f366e
Added generated files
reOiL May 6, 2025
9c5f106
add ordered specialization for das_set
aleksisch May 6, 2025
8b1bb2d
prepare for das standalone-contexts
aleksisch May 6, 2025
2015ceb
add das standalone contexts
aleksisch May 6, 2025
761e890
create main for das aot & standalone contexts
aleksisch May 6, 2025
f32b93a
Merge pull request #1657 from aleksisch/feature/ast-standalone-ctx-das
borisbat May 6, 2025
b348f00
fix the pA().foo = bar to not be a dead write, assuming pA() returns …
borisbat May 6, 2025
4ce83fb
fix: update call_each to use das::pair and das::string for improved t…
profelis May 6, 2025
ad93146
fix: enhance GENERATE_IO_STUB macro to include return statements for …
profelis May 6, 2025
d5dc334
fix: regen ast.das.inc
profelis May 6, 2025
ed8fd0c
Merge pull request #1668 from GaijinEntertainment/fix-pointer-write
borisbat May 6, 2025
1280a85
fix: add isGeneric property to AstBuiltInFunctionAnnotation
profelis May 6, 2025
398c8ef
fix: improve bounds checking for iteratorsTupleExpansion in for loop
profelis May 6, 2025
407479a
Merge pull request #1669 from profelis/master
borisbat May 6, 2025
00d8f2a
link blog post on conversion on the site
borisbat May 7, 2025
d1e5b9c
fix: remove unused smart_pointer_by_value_unsafe field
profelis May 7, 2025
4771276
fix: convert string to das::string in parseDaScript calls
profelis May 7, 2025
4570141
fix: replace assert with DAS_ASSERT for consistency across the codebase
profelis May 7, 2025
1508d81
Use hash_tag instead of hardcoded random number
reOiL May 8, 2025
cc3ee37
Merge pull request #1667 from reOiL/thread_local_wrap
borisbat May 8, 2025
1ca2105
Merge pull request #1670 from profelis/master
borisbat May 8, 2025
bfa001d
lets have a lot less warnings
borisbat May 9, 2025
08ed26d
Merge pull request #1671 from GaijinEntertainment/less-warnings-now
borisbat May 9, 2025
084a1c4
add fixes to match ast_aot in cpp and das
aleksisch May 12, 2025
2ea4bb4
Merge pull request #1672 from aleksisch/fixes/ast-aot
borisbat May 13, 2025
17f3457
Introduce static SizeOf AlignOf for tuple & variant
aleksisch May 12, 2025
b304a8d
refactor: update DAS_THREAD_LOCAL macro
profelis May 13, 2025
1aab424
add platform independent aot in ast_aot_cpp.das
aleksisch May 13, 2025
6ee7914
Merge pull request #1674 from profelis/master
borisbat May 13, 2025
59d2a0b
fix: less warnings (unqualified call to 'std::move')
profelis May 13, 2025
ebc6805
fix: use explicit pointer type in function loop
profelis May 13, 2025
880c3c4
Merge pull request #1675 from profelis/master
borisbat May 13, 2025
b42c556
use AutoTuple and AutoVariant when cross platform enabled
aleksisch May 14, 2025
aeeec5b
fixes for CI
aleksisch May 14, 2025
03e45ad
Merge pull request #1673 from aleksisch/feature/platform-independent-aot
borisbat May 15, 2025
82a4770
fix memset const ref bug in aot
aleksisch May 15, 2025
f042a88
Merge pull request #1676 from aleksisch/aot/fix/memset_const_ref
borisbat May 15, 2025
07d322c
prevent local and loop variables from interfering with aliases
borisbat May 15, 2025
303cde5
Merge pull request #1677 from GaijinEntertainment/alias-shadowing
borisbat May 15, 2025
b05fdc6
more smart_ptr debugging tools
borisbat May 20, 2025
4dcaace
Merge pull request #1680 from GaijinEntertainment/smart-ptr-broken
borisbat May 20, 2025
0794f29
fix cast to smart_ptr from raw ptr
aleksisch May 20, 2025
c6346a1
Merge pull request #1682 from aleksisch/fix/das-aot-ref
borisbat May 20, 2025
28440c9
fix tuple/variant alignof
aleksisch May 20, 2025
3de0f6a
Merge pull request #1683 from aleksisch/fix/tuple-alignof
borisbat May 20, 2025
d7aee2e
push_clone for smart_ptr arrays
borisbat May 21, 2025
c974075
Merge pull request #1685 from GaijinEntertainment/push_clone
borisbat May 21, 2025
f5ccd36
add missed declarations
aleksisch May 22, 2025
07d8805
remove rtti-value alias
aleksisch May 22, 2025
14a1594
add missed module <name> in das files
aleksisch May 22, 2025
bec6627
Merge pull request #1686 from aleksisch/fix/add-missed-declarations
borisbat May 23, 2025
d9a2e2f
Merge pull request #1687 from aleksisch/feature/remove-rtti-value-alias
borisbat May 23, 2025
d4b7ad7
use AutoSimNode to avoid type repetition
aleksisch May 23, 2025
d6c16c3
shorten standalone context
aleksisch May 23, 2025
ed94e3c
use smart_ptr_raw in aot
aleksisch May 23, 2025
771ba2a
remove duplicated queryByMangledName
aleksisch May 23, 2025
2066511
function address error is now detailed
borisbat May 24, 2025
5619d13
Merge pull request #1691 from GaijinEntertainment/func-addr-error
borisbat May 24, 2025
420a401
Merge pull request #1690 from aleksisch/refactor/remove-duplication
borisbat May 24, 2025
59bc0c1
Merge pull request #1689 from aleksisch/feature/improve-standalone-co…
borisbat May 24, 2025
b25221d
Merge pull request #1688 from aleksisch/feature/aot-use-smart-ptr-raw
borisbat May 25, 2025
ed742d7
improve cmake for convenient usage of bootstrapped compiler
aleksisch Apr 1, 2025
246767d
Merge pull request #1615 from aleksisch/remove-cpp-printer
borisbat May 26, 2025
3cd0ee6
fix: remove extraneous character in smart_ptr.h
profelis May 26, 2025
6ab5adf
refactor: improve optional fields logic for sprint_json function
profelis May 26, 2025
a58992f
Merge pull request #1693 from profelis/master
borisbat May 26, 2025
4ac4a4e
skip lockchceck on generated c-tor
borisbat May 26, 2025
c859dc4
Merge pull request #1694 from GaijinEntertainment/skip-lockcheck-ctor
borisbat May 27, 2025
0f66989
only override on sealed, if its indeed an overwrite
borisbat May 27, 2025
6f3a95e
Merge pull request #1695 from GaijinEntertainment/skip-lockcheck-ctor
borisbat May 27, 2025
387dd8c
never rebuild daslang-stage0
aleksisch May 27, 2025
798f48a
Merge pull request #1696 from aleksisch/feature/do-not-rebuild-everyt…
borisbat May 27, 2025
ffc18eb
do not rebuild
aleksisch May 27, 2025
0cec048
Refactor DataWalker to improve structure handling and avoid loops
profelis May 27, 2025
1043034
Merge pull request #1698 from profelis/master
borisbat May 27, 2025
9e9d778
Merge pull request #1697 from aleksisch/fix/do-not-rebuild
borisbat May 27, 2025
b4d3b6a
Use semHash + name instead of hash from absolute path to get anonymou…
May 27, 2025
d1df9d0
add suffix in recursive call
May 28, 2025
5eea9d9
Free allocated memory for globals and shared variables before realloc…
profelis May 28, 2025
df4ebac
Implement memory management functions for globals and shared variables
profelis May 28, 2025
d4bccbf
Merge pull request #1699 from aleksisch/fix/scan-dir-suffix
borisbat May 28, 2025
250f421
Merge pull request #1701 from profelis/zero-globals
borisbat May 28, 2025
88aa0eb
super initializer
borisbat May 29, 2025
439a760
Merge pull request #1702 from GaijinEntertainment/super-take-1
borisbat May 29, 2025
f4f3785
in aot use SFINAE templated enum casts
May 29, 2025
a5bb5c1
fix unreferenced formal parameter
profelis May 29, 2025
f7058ab
fix nullptr dereference
May 29, 2025
404f304
rid of ownerless expression
May 29, 2025
488246c
Merge pull request #1705 from profelis/master
borisbat May 29, 2025
0510463
Merge pull request #1703 from aleksisch/feature/sfinae-for-enum-cast
borisbat May 29, 2025
1a39b6d
Merge pull request #1704 from aleksisch/feature/use-hash-instead-of-p…
borisbat May 29, 2025
c19ab35
support for super. no need for 'self'
borisbat May 29, 2025
09a282b
finish work on das standalone contexts
aleksisch May 6, 2025
f8bf44a
add aot/standalone_contexts to web demo.
May 27, 2025
e5850c8
move aot_stub to src/misc
May 29, 2025
c4e03eb
Merge pull request #1706 from GaijinEntertainment/super-take-2
borisbat May 29, 2025
ac3c923
add ref and del ref in simulate
May 29, 2025
abf03d3
Merge pull request #1684 from aleksisch/feature/use-standalone-ctx-aot
borisbat May 30, 2025
cf38963
fix typos
May 30, 2025
00b9fcc
Implement afterHandleCancel functionality in data walker and debugger…
profelis May 30, 2025
0c982da
use smart_ptr in dasgen
May 30, 2025
7aa64b9
Merge pull request #1709 from profelis/master
borisbat May 30, 2025
83daedc
Merge pull request #1710 from aleksisch/feature/dasgen-smart-ptr
borisbat May 30, 2025
df049e1
Merge pull request #1707 from aleksisch/fix-typos
borisbat May 30, 2025
1088d6f
expose getAllRequireReq function to retrieve required records
profelis May 30, 2025
f2616ce
_return_with_lockcheck no longer affects CMRES
borisbat May 31, 2025
aa38677
upsie
borisbat May 31, 2025
a3259f6
inscope variable can't be cmres
borisbat May 31, 2025
5dd3f47
Merge pull request #1712 from GaijinEntertainment/return-with-lockche…
borisbat May 31, 2025
fabf9e1
Merge pull request #1711 from profelis/master
borisbat May 31, 2025
f86dc61
if there is finally section in the current scope somehow - no CMRES
borisbat Jun 2, 2025
d7eec57
Merge pull request #1713 from GaijinEntertainment/return-with-lockche…
borisbat Jun 2, 2025
fd6ec06
better error messages with different emplaces
borisbat Jun 2, 2025
658db3b
upsie
borisbat Jun 2, 2025
142ecbf
more upsie
borisbat Jun 2, 2025
f3c8f05
just that
borisbat Jun 2, 2025
d9f4b7b
format?
borisbat Jun 2, 2025
2268713
Merge pull request #1715 from GaijinEntertainment/better-emplace
borisbat Jun 2, 2025
6425c79
Refactor module name handling in prerequisite functions
profelis Jun 3, 2025
8e3b192
Merge pull request #1716 from profelis/master
borisbat Jun 3, 2025
175bbba
fix bunch of bugs & small improvements:
Jun 2, 2025
1a095ce
use enum for ChooseSmartPtr flag
Jun 2, 2025
9930a16
use relative path for hash
Jun 2, 2025
2374df0
add dependency for daslibStage0 on builtin and remove rst.das and liv…
Jun 3, 2025
13213e5
disable aot das mode until comp time perfomance issues not fixed
Jun 3, 2025
34bccaf
Merge pull request #1714 from aleksisch/feautre/small-fixes
borisbat Jun 3, 2025
53ad22e
catch typo in required module names (when name is explicitly set)
profelis Jun 4, 2025
2f23953
Merge pull request #1717 from profelis/master
borisbat Jun 4, 2025
e19d9c3
add has_env_variable function to check for environment variables exis…
profelis Jun 4, 2025
c84295b
Merge pull request #1718 from profelis/master
borisbat Jun 5, 2025
2d50e22
update has_env_variable function to include Context and LineInfoArg p…
profelis Jun 5, 2025
5256b14
dastest: refactor logging functions to improve color handling and add…
profelis Jun 5, 2025
f758822
fix bug in uriparser
Jun 5, 2025
5051d4d
replace filesystem with uriparse for relative path search
Jun 5, 2025
cfdd6b4
Merge pull request #1719 from profelis/master
borisbat Jun 5, 2025
7fd174f
Merge pull request #1720 from aleksisch/feature/remove-filesystem-dep
borisbat Jun 5, 2025
5ef85c3
error on nested string constants
borisbat Jun 6, 2025
39b07b8
Merge pull request #1721 from GaijinEntertainment/nested_string_const…
borisbat Jun 6, 2025
e0fb396
fix c-tor lookup from the generic, which does not see module of the s…
borisbat Jun 7, 2025
0130179
Merge pull request #1722 from GaijinEntertainment/more-ctor-goo
borisbat Jun 7, 2025
927a593
fix: add space after 'match' keyword for consistency
profelis Jun 9, 2025
deed910
fix: update lower_bound function signatures to use auto type for valu…
profelis Jun 9, 2025
ea23d2c
Merge pull request #1723 from profelis/master
borisbat Jun 9, 2025
817cc31
lambda capture errors and bugfixes
borisbat Jun 10, 2025
90782e7
Merge pull request #1724 from GaijinEntertainment/better-capture
borisbat Jun 10, 2025
5baf811
support // comments inside variable declaration list
borisbat Jun 11, 2025
466463f
Merge pull request #1726 from GaijinEntertainment/bugg-fixes
borisbat Jun 11, 2025
b355b80
ignore \r on windows inside macros
aleksisch Jun 11, 2025
4e6f711
Merge pull request #1728 from aleksisch/feature/ignore-cr-windows
borisbat Jun 12, 2025
18ad75a
generic clone functions
borisbat Jun 12, 2025
e94ceae
Merge pull request #1729 from GaijinEntertainment/clone-init
borisbat Jun 12, 2025
85991d4
track temp strings allocations in debug agent
profelis Jun 11, 2025
27c1c69
Merge pull request #1727 from profelis/master
borisbat Jun 12, 2025
9e6180c
Make aot hashes independent from platform.
Jun 3, 2025
8894966
add dasgen validation to CI
May 30, 2025
11bfd0c
fix issues
aleksisch Jun 10, 2025
6a81308
update generated aot files
aleksisch Jun 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# All files generated by standalone contexts are ignored in git statistic
src/das/**/*.cpp binary
src/das/**/*.h binary
utils/dasFormatter/ds_parser.cpp binary
utils/dasFormatter/ds_parser.output binary
daslib/_aot_generated/*.cpp binary
39 changes: 37 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,21 +163,56 @@ jobs:
linux64)
cmake --no-warn-unused-cli -B./build -DCMAKE_BUILD_TYPE:STRING=${{ matrix.cmake_preset }} -G "${{ matrix.cmake_generator }}"
cd build
ninja daslang
ninja
;;
windows*)
windows32)
cmake --no-warn-unused-cli -B./build -G "${{ matrix.cmake_generator }}" -T host=x86 -A ${{ matrix.architecture_string }}
cmake --build ./build --config ${{ matrix.cmake_preset }} --target daslang
cmake --build ./build --config ${{ matrix.cmake_preset }}
;;
windows64)
cmake --no-warn-unused-cli -B./build -G "${{ matrix.cmake_generator }}" -T host=x64 -A ${{ matrix.architecture_string }}
cmake --build ./build --config ${{ matrix.cmake_preset }} --target daslang
cmake --build ./build --config ${{ matrix.cmake_preset }}
;;
*)
CC=clang CXX=clang++ cmake --no-warn-unused-cli -B./build -DCMAKE_OSX_ARCHITECTURES="x86_64" -DCMAKE_BUILD_TYPE:STRING=${{ matrix.cmake_preset }} -G "${{ matrix.cmake_generator }}"
cd build
ninja daslang
ninja
;;
esac
;;
esac

- name: Run dasgen
run: ./bin/daslang dasgen/gen_bind.das || exit 0 # smart pointers leak
- name: Check for changes
# Ignore changes which depends on stack top.
# Also ignore parser generated files.
run: |
set -eux
case "${{ matrix.target }}${{ matrix.architecture }}" in
windows32)
# windows32 is not ready yet
;;
*)
git diff --ignore-all-space --text \
-I".*FunctionInfo.*" \
-I".*FuncInfo.*" \
-I".*das_stack_prologue.*" \
-I".*smart_ptr_raw<Function>.*" \
--exit-code \
-- ':!src/parser/ds2_lexer.cpp' \
':!src/parser/ds_lexer.cpp' \
':!src/parser/ds2_parser.output' \
':!src/parser/ds_parser.output' \
':!src/parser/lex2.yy.h' \
':!src/parser/lex.yy.h' \
':!utils/dasFormatter/ds_parser.cpp' \
|| (echo "Generated code changed! To reproduce use "./bin/daslang dasgen/gen_bind.das" or rebuild "daslang-dev" to regenerate aot files." && exit 1)
;;
esac
- name: "Run formatter"
run: |
set -eux
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ tmtags

*.output
*.temp
**/_aot_generated

build/
bin/
Expand Down
11 changes: 8 additions & 3 deletions CMakeCommon.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ check_cxx_source_runs("${SSE2_TEST_SOURCE}" SSE2_SUPPORTED)
ENDIF()

MACRO(SETUP_COMPILER)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DNDEBUG=1") # Always disable to have stable aot hashes
IF(EMSCRIPTEN)
ADD_COMPILE_OPTIONS(-Wno-ignored-attributes)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-invalid-offsetof")
Expand Down Expand Up @@ -228,12 +229,16 @@ MACRO(CMAKE_TEXT_XXD project_name file_name)
)
ENDMACRO()

MACRO(ADD_PROJECT_XXD_DEPENDS project_name)
ADD_CUSTOM_TARGET(${project_name}_xxd ALL
MACRO(ADD_TARGET_PROJECT_XXD_DEPENDS target project_name)
ADD_CUSTOM_TARGET(${target}_xxd ALL
DEPENDS ${XXD_DEPENDS_LIST_${project_name}}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)
ADD_DEPENDENCIES(${project_name} ${project_name}_xxd)
ADD_DEPENDENCIES(${target} ${project_name}_xxd)
ENDMACRO()

MACRO(ADD_PROJECT_XXD_DEPENDS project_name)
ADD_TARGET_PROJECT_XXD_DEPENDS(${project_name} ${project_name})
ENDMACRO()


Expand Down
Loading