47
47
"arm-unknown-linux-gnueabihf" : [ "arm-linux-gnueabihf-gcc" ],
48
48
"i686-unknown-linux-gnu" : linux_compilers ,
49
49
"x86_64-unknown-linux-gnu" : linux_compilers ,
50
+ "x86_64-fortanix-unknown-sgx" : linux_compilers ,
50
51
"x86_64-apple-darwin" : osx_compilers ,
51
52
}
52
53
76
77
"aarch64-unknown-linux-gnu" ,
77
78
"i686-unknown-linux-gnu" ,
78
79
"arm-unknown-linux-gnueabihf" ,
80
+ "x86_64-fortanix-unknown-sgx" ,
79
81
],
80
82
}
81
83
82
84
def format_entries ():
83
- return "\n " .join ([format_entry (os , target , compiler , rust , mode , features )
84
- for rust in rusts
85
- for os in oss
86
- for target in targets [os ]
87
- for compiler in compilers [target ]
88
- for mode in modes
89
- for features in feature_sets ])
85
+ return "\n " .join ([entry for entry in
86
+ (format_entry (os , target , compiler , rust , mode , features )
87
+ for rust in rusts
88
+ for os in oss
89
+ for target in targets [os ]
90
+ for compiler in compilers [target ]
91
+ for mode in modes
92
+ for features in feature_sets )
93
+ if entry is not None ])
90
94
91
95
# We use alternative names (the "_X" suffix) so that, in mk/travis.sh, we can
92
96
# ensure that we set the specific variables we want and that no relevant
@@ -111,6 +115,12 @@ def format_entries():
111
115
%(sources)s"""
112
116
113
117
def format_entry (os , target , compiler , rust , mode , features ):
118
+ if target == "x86_64-fortanix-unknown-sgx" and rust != "nightly" :
119
+ return
120
+ # Tracked in https://github.com/fortanix/rust-sgx/issues/64
121
+ if target == "x86_64-fortanix-unknown-sgx" and compiler == "clang" :
122
+ return
123
+
114
124
target_words = target .split ("-" )
115
125
arch = target_words [0 ]
116
126
vendor = target_words [1 ]
@@ -127,13 +137,11 @@ def format_entry(os, target, compiler, rust, mode, features):
127
137
mode == "DEBUG" )
128
138
129
139
if sys == "darwin" :
130
- abi = sys
131
140
sys = "macos"
132
141
elif sys == "androideabi" :
133
- abi = sys
134
142
sys = "linux"
135
- else :
136
- abi = target_words [ 3 ]
143
+ elif target == "x86_64-fortanix-unknown-sgx" :
144
+ sys = "linux"
137
145
138
146
def prefix_all (prefix , xs ):
139
147
return [prefix + x for x in xs ]
@@ -263,7 +271,7 @@ def main():
263
271
file .seek (0 )
264
272
file .write (new_contents )
265
273
file .truncate ()
266
- print new_contents
274
+ print new_contents ,
267
275
268
276
if __name__ == '__main__' :
269
277
main ()
0 commit comments