Repository navigation
dasLLVM tests delete only their own cache folder; SETUP_CPP11 adds its flags once; jit_runtime.cpp include - #4756
Merged
Merged
Conversation
The include sat under DAS_ENABLE_DYN_INCLUDES while the call to describe_pending_dynamic_modules() did not, so a build without the define failed to compile the file. The header reads no build switch. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The macro appended the language standard to CMAKE_CXX_FLAGS on every call, and a directory's targets compile with the value the directory ends with: one copy per call made there and in its parents. The code model of a Visual Studio tree carried 43 to 97 copies of /std:c++17 per C++ compile group, and the preflight C++ pass handed them all to clang. The macro now appends only what is not there. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The JIT cache tests deleted dir_name(output_path). A failed run leaves output_path empty, and that delete once named the working directory and emptied a worktree; rmdir_rec refuses such a path now. The tests no longer lean on that refusal: the cleanup deletes only a script's own folder under .cache/daslang, and a round whose output_path lies outside one fails the test. The sweep and the tests share one check of a cache folder's name. Fixes #4699 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The builtin landed without a digest regeneration, so the docs digest gate was red on master. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Nothing changes for daslang users: a test cleanup that can no longer delete outside its own folders, shorter compile lines from CMake, and one include a build without
DAS_ENABLE_DYN_INCLUDESneeds.Why. Three leftovers. The dasLLVM JIT cache tests deleted
dir_name(output_path), and a failed run leaves that path empty (closes #4699).SETUP_CPP11appended the language standard toCMAKE_CXX_FLAGSon every call.jit_runtime.cppcalled a function whose header it included only under a define.What changes.
remove_round_cache: only a script's own folder under.cache/daslang, and a round with no such folder fails the test.is_jit_cache_folder_name.modules/dasLLVM/tests/REVIEW.mdgains a rule on what a test's recursive delete may name.SETUP_CPP11appends each flag group once (DAS_CXX_FLAGS_ONCE).jit_runtime.cppincludesdyn_modules.hon every build.Observable behavior.
/std:c++17per C++ compile group -> 1.Where to look.
round_cache_folderinmodules/dasLLVM/tests/_llvm_cache_common.das;cmake/das_cxx_flags_once.cmake.Validation, claims, ledger
Validation
docs/digest, stale on master too (the digest lackedget_builtin_function_link_name). The last commit regenerates it; the docs gate was run again after it and passes.modules/dasLLVM/tests/llvm_jit_cache.dasunder-jit: 33 tests, 33 passed, with the split-module, object-cache and AST round-trip tests run, not skipped. Each of them now asserts that the delete of its cache folder succeeded./std:c++17(72 groups had 59, 24 had 97); after a configure with this change, each carries one. Every group still names the standard.cmake_cxx_flags_once(labelsmall, so every per-PR lane runs it). Configuration that executes it:cmake -S . -B buildwith default flags, thenctest --test-dir build -C Release -R cmake_cxx_flags_once.round_cache_folder: each of its three conditions forced true failstest_round_cache_folder.is_jit_cache_folder_nameforced either way fails the sweep tests and the cache tests.REVIEW.md,modules/REVIEW.md,modules/dasLLVM/REVIEW.md,modules/dasLLVM/tests/REVIEW.md,src/REVIEW.md,src/builtin/REVIEW.mdby auditors;tests-cpp/REVIEW.mdandtests-cpp/small/REVIEW.mdread by hand after the test was added), style, duplicates, and one review pass over the new checklist rule. No rule violated; the findings on this diff are fixed here, except the ones under Not done.Claims - stated, not tested
jit_runtime.cpp: the CMake build definesDAS_ENABLE_DYN_INCLUDESfor every libDaScript target, so no lane compiles the file without it. The evidence is the file itself: the call sat outside the guard its declaration's include was under.SETUP_CPP11call sites of the macro have no automated test (the ctest case includes the macro file alone). The code-model count above is their evidence./std:c++17into one project property, so the build after this change compiled only the files of this diff.remove_round_cachethat fails the test on a round with no cache folder is test-helper code and no test drives it;round_cache_folder, which decides it, is tested.Not done
SETUP_CPP11still adds the standard besideCMAKE_CXX_STANDARD 17, which the rootCMakeLists.txtalready sets: each compile group names it twice, once in each spelling. Dropping the macro's copy can change which dialect a macOS or mingw compile line ends with, and was not tried.rmdir_rec(dir_name(<expr>)), the idea at the end of dasLLVM tests: a failed in-process JIT run makes llvm_jit_cache.das delete the working directory #4699.rmdir_recitself refuses an empty path, a root and a.or..tail since 0448fc7, and the new checklist rule covers this folder.module_jit.cppkeeps two includes under the same define; it uses nothing from them, so it compiles either way.REVIEW.md,modules/REVIEW.md,modules/dasLLVM/REVIEW.md,src/REVIEW.md,src/builtin/REVIEW.md, and three older rules ofmodules/dasLLVM/tests/REVIEW.md) are not edited here.