pk19604014
c00c7b3249
BUILD file cleanup I missed in #2104 ( #2115 )
2022-08-26 08:26:36 -07:00
pk19604014
98d95cd188
Cleanup: since explorer_fuzzer is now a standard cc_fuzz_test, and runs on all files in the corpus, there's no need for fuzzer_util_test to do the same manually
...
Before:
```
//explorer/fuzzing:fuzzer_util_test PASSED in 18.5s
```
After:
```
//explorer/fuzzing:fuzzer_util_test PASSED in 0.3s
```
2022-08-25 09:06:45 -07:00
pk19604014
9f90fa3633
Added a patch with a fuzzer Bazel BUILD file and updated fuzz_test rule to use the new @llvm-project//compiler-rt:FuzzerMain
...
Fixes #1208 (_LIBCPP_DEBUG crash)
Fully bazel-ifying compiler-rt is more complex than I originally thought, due to dependencies on other llvm projects like libcxx which currently also don't have bazel build support -- https://github.com/carbon-language/carbon-lang/issues/1208#issuecomment-1171555971
2022-07-15 09:14:30 -04:00
pk19604014
98f4bb3110
Changed fuzzer_util_test to not process the full fuzzer corpus, but instead just run on a single file, to minimize friction when making fuzzer proto changes ( #1354 )
...
At least one successful parse is still required for the test to pass.
2022-06-30 14:45:36 -04:00
Richard Smith
9ea405788e
Combine most ast/ build targets into one. ( #1334 )
...
We fundamentally have cyclic references between declarations,
statements, expressions, and patterns, and there's no meaningful
layering between them. Combine them into a single build target.
Components such as paren_contents, static_scope, and library_name that
are defined without reference to specific AST nodes are kept as separate
BUILD targets.
2022-06-27 16:55:42 -07:00
pk19604014
150057f260
Added GetRunfilesFile() to be able to reliably determine prelude location under various invocation scenarios
...
The logic is using bazel Runfiles API per Jon's suggestion.
One of the scenarios used by the fuzzing framework is to place the binary and its runfiles into a folder, resulting in a directory layout like this:
[temp dir]
fuzzer
fuzzer.runfiles/
Tested:
bazel test -c opt explorer/fuzzing:explorer_fuzzer
bazel build -c opt explorer/fuzzing:explorer_fuzzer + run the binary from various locations
2022-05-02 10:36:21 -04:00
Jon Meow
309ec35f95
Rename executable_semantics to explorer ( #1188 )
...
Change generated with:
```
#!/usr/bin/bash -eux
# Helper script for renaming pending work.
# Run from the repo root.
# Rename executable_semantics in code.
sed -i 's/executable_semantics/explorer/g' \
$(git grep -l 'executable_semantics' . | grep -v proposals)
sed -i 's/executable semantics/explorer/g' \
$(git grep -l 'executable semantics' . | grep -v proposals)
sed -i 's/Executable semantics/Explorer/g' \
$(git grep -l 'Executable semantics' . | grep -v proposals)
sed -i 's/Executable Semantics/Explorer/g' \
$(git grep -l 'Executable Semantics' . | grep -v proposals)
sed -i 's/EXECUTABLE_SEMANTICS/EXPLORER/g' \
$(git grep -l 'EXECUTABLE_SEMANTICS' . | grep -v proposals)
sed -i 's/ExecutableSemantics/Explorer/g' \
$(git grep -l 'ExecutableSemantics' . | grep -v proposals)
sed -i 's/executable-semantics/explorer/g' \
$(git grep -l 'executable-semantics' . | grep -v proposals)
# This is only needed for the initial move.
mv executable_semantics explorer
mv explorer/fuzzing/executable_semantics_fuzzer.cpp explorer/fuzzing/explorer_fuzzer.cpp
```
Verified with `bazel test ...`
2022-04-29 13:20:25 -07:00