Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 565 linking #568

Merged
merged 3 commits into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
16 changes: 7 additions & 9 deletions bin/Examples/CompressCompilation.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,14 @@ def harness(comp: mx.frontend.Compilation, root_path: pathlib.PurePath):
"resource_directory": str(comp.resource_directory),
}], indent=" "))

# Go get all macro definitions not associated with a file. This will capture
# compiler-builtin macros. Unfortunately this will also capture the macros
# defined at the command-line.
# Go get all (used) compiler builtin macro definitions.
with open(str(root_path / "builtin-macros.h"), "w") as macros:
index = mx.Index.containing(comp)
for macro in mx.frontend.DefineMacroDirective.IN(index):
file = mx.frontend.File.containing(macro)
if not file:
macros.write(" ".join(t.data for t in macro.generate_use_tokens))
macros.write('\n')
for macro in comp.builtin_defines:
macros.write(f"#ifdef {macro.name.data}\n")
macros.write(f"# undef {macro.name.data}\n")
macros.write("#endif\n")
macros.write(" ".join(t.data for t in macro.generate_use_tokens))
macros.write('\n')

with tarfile.open(str(root_path) + ".tar.gz", "w:gz") as tar:
tar.add(str(root_path), arcname=root_path.name)
Expand Down
1 change: 1 addition & 0 deletions vendor/llvm-project/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ execute_process(COMMAND ${CMAKE_COMMAND}
-DLLVM_ENABLE_RTTI:BOOL=ON
"-DLLVM_ENABLE_ASSERTIONS:BOOL=${LLVM_ENABLE_ASSERTIONS}"
-DLLVM_ENABLE_EXPENSIVE_CHECKS:BOOL=OFF
"-DLLVM_ABI_BREAKING_CHECKS:STRING=FORCE_OFF"
-DLLVM_ENABLE_FFI:BOOL=OFF
-DLLVM_ENABLE_WARNINGS:BOOL=ON
-DLLVM_INCLUDE_BENCHMARKS:BOOL=OFF
Expand Down