We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 640dc21 commit aacf491Copy full SHA for aacf491
clang/lib/Basic/Targets/OSTargets.h
@@ -328,9 +328,21 @@ class LLVM_LIBRARY_VISIBILITY HurdTargetInfo : public OSTargetInfo<Target> {
328
Builder.defineMacro("_REENTRANT");
329
if (Opts.CPlusPlus)
330
Builder.defineMacro("_GNU_SOURCE");
331
+ if (this->HasFloat128)
332
+ Builder.defineMacro("__FLOAT128__");
333
}
334
public:
- using OSTargetInfo<Target>::OSTargetInfo;
335
+ HurdTargetInfo(const llvm::Triple &Triple, const TargetOptions &Opts)
336
+ : OSTargetInfo<Target>(Triple, Opts) {
337
+ switch (Triple.getArch()) {
338
+ default:
339
+ break;
340
+ case llvm::Triple::x86:
341
+ case llvm::Triple::x86_64:
342
+ this->HasFloat128 = true;
343
344
+ }
345
346
};
347
348
// Linux target
0 commit comments