6
6
7
7
8
8
def get_portage_compiler_config (filename ):
9
- content = (
10
- 'COMMON_FLAGS="-O2 -pipe -Xclang -fembed-bitcode=all"\n '
11
- '\n '
12
- 'CC="/root/ir-dataset/utils/compiler_wrapper"\n '
13
- 'CXX="/root/ir-dataset/utils/compiler_wrapper++"\n '
14
- 'CFLAGS="${COMMON_FLAGS}"\n '
15
- 'CXXFLAGS="${COMMON_FLAGS}"\n '
16
- 'FCFLAGS="${COMMON_FLAGS}"\n '
17
- 'FFLAGS="${COMMON_FLAGS}"\n '
18
- '\n '
19
- 'FEATURES="noclean"\n '
20
- '\n '
21
- 'LC_MESSAGES=C.utf8'
22
- )
23
- with open (filename , 'w' ) as file :
24
- file .write (content )
25
-
9
+ content = ('COMMON_FLAGS="-O2 -pipe -Xclang -fembed-bitcode=all"\n '
10
+ '\n '
11
+ 'CC="/root/ir-dataset/utils/compiler_wrapper"\n '
12
+ 'CXX="/root/ir-dataset/utils/compiler_wrapper++"\n '
13
+ 'CFLAGS="${COMMON_FLAGS}"\n '
14
+ 'CXXFLAGS="${COMMON_FLAGS}"\n '
15
+ 'FCFLAGS="${COMMON_FLAGS}"\n '
16
+ 'FFLAGS="${COMMON_FLAGS}"\n '
17
+ '\n '
18
+ 'FEATURES="noclean"\n '
19
+ '\n '
20
+ 'LC_MESSAGES=C.utf8' )
21
+ with open (filename , 'w' ) as file :
22
+ file .write (content )
26
23
27
24
28
25
def portage_setup_compiler (build_dir ):
@@ -41,8 +38,9 @@ def portage_setup_compiler(build_dir):
41
38
os .symlink ('/etc/portage/make.profile' , make_profile_path )
42
39
get_portage_compiler_config (make_conf_path )
43
40
41
+
44
42
def clean_binpkg (package_spec ):
45
43
command_vector = ['rm' , '-rf' , '/var/cache/binpkgs/' + package_spec ]
46
44
subprocess .run (command_vector )
47
45
sync_command = ['emaint' , '--fix' , 'binhost' ]
48
- subprocess .run (sync_command )
46
+ subprocess .run (sync_command )
0 commit comments