Spaces:
Sleeping
Sleeping
Commit
·
f7b1854
1
Parent(s):
0bf3f06
debugging
Browse files- Dockerfile +1 -3
- main.py +1 -1
Dockerfile
CHANGED
@@ -9,9 +9,7 @@ COPY ./requirements.txt /code/requirements.txt
|
|
9 |
|
10 |
RUN apt-get -y update && apt-get -y install lsb-release software-properties-common gnupg && apt-get -y clean all
|
11 |
|
12 |
-
RUN bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)"
|
13 |
-
|
14 |
-
RUN llvm-readobj-20 --version
|
15 |
|
16 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
17 |
|
|
|
9 |
|
10 |
RUN apt-get -y update && apt-get -y install lsb-release software-properties-common gnupg && apt-get -y clean all
|
11 |
|
12 |
+
RUN bash -c "$(wget -O - https://apt.llvm.org/llvm.sh) || exit 1"
|
|
|
|
|
13 |
|
14 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
15 |
|
main.py
CHANGED
@@ -84,7 +84,7 @@ def compile(compiler, flags, source):
|
|
84 |
relocs = trim(relocs, 3)
|
85 |
|
86 |
json_relocs = subprocess.run(
|
87 |
-
["llvm-readobj", "--elf-output-style=JSON", "--relocations", temp_o_file_name],
|
88 |
capture_output=True,
|
89 |
text=True,
|
90 |
).stdout
|
|
|
84 |
relocs = trim(relocs, 3)
|
85 |
|
86 |
json_relocs = subprocess.run(
|
87 |
+
["llvm-readobj-19", "--elf-output-style=JSON", "--relocations", temp_o_file_name],
|
88 |
capture_output=True,
|
89 |
text=True,
|
90 |
).stdout
|