[xsd-users] Cross-compiling xsd

Boris Kolpackov boris at codesynthesis.com
Mon May 20 10:52:42 EDT 2013


Hi Ray,

Ray Lischner <rlischner at proteuseng.com> writes:

> I want to run all the tests on the target system. So I need to build xsd
> natively, run xsd on all the schemas in tests. But I don't want to compile
> the C++ files in tests/ natively. Either I want to compile them on the
> target system, or compile them with a different configuration.

Ok, I see the problem. Even if you to cross-compilation of tests, they
will have to use a different compiler (one that builds for target, not
for host). To support something like this we would have to split the XSD
compiler and the test suite into two separate packages. Which may not
be a bad idea; we did that with ODB and it works very well.


> Is there a make target that runs xsd on all the test schemas, but
> does not run the C++ compiler to build the test driver programs?

No, there is no such target.


> Or is there a way to reconfigure the build variables without deleting any
> object files? I guess I can run the interactive make dialogs and save all
> the configuration-dynamic.make files for the target, then make disfigure and
> make again for the host. Run make in xsd. Replace all the
> configuration-dynamic.make files and run make in tests/.

Yes, this will work except disfigure will also do clean. So what you will
need to do is disfigure the C++ compiler configuration manually. Simply
deleting the build/cxx directory should do the trick.

Boris



More information about the xsd-users mailing list