mirror of
https://github.com/reactos/syzkaller.git
synced 2024-11-27 13:20:34 +00:00
bbad15ae75
* Introduce the new target flag 'LittleEndian' which specifies of which endianness the target is. * Introduce the new requires flag 'littleendian' for tests to selectively enable/disable tests on either little-endian architectures or big-endian ones. * Disable KD unit test on s390x architecture because the test works only on little-endian architecture. Signed-off-by: Alexander Egorenkov <Alexander.Egorenkov@ibm.com>
27 lines
663 B
Go
27 lines
663 B
Go
// Copyright 2017 syzkaller project authors. All rights reserved.
|
|
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
|
|
|
|
package main
|
|
|
|
import (
|
|
"github.com/google/syzkaller/pkg/compiler"
|
|
)
|
|
|
|
type windows struct{}
|
|
|
|
func (*windows) prepare(sourcedir string, build bool, arches []*Arch) error {
|
|
return nil
|
|
}
|
|
|
|
func (*windows) prepareArch(arch *Arch) error {
|
|
return nil
|
|
}
|
|
|
|
func (*windows) processFile(arch *Arch, info *compiler.ConstInfo) (map[string]uint64, map[string]bool, error) {
|
|
params := &extractParams{
|
|
DeclarePrintf: true,
|
|
TargetEndian: arch.target.HostEndian,
|
|
}
|
|
return extract(info, "cl", nil, params)
|
|
}
|