Fix building with build.py on Windows (#3013)

Changes:
  - gen-doctest.py: Use slashes in paths to make cmake happy.
  - unit-doc/CMakeLists.txt: Don't add invalid arguments to MSVC and call gen-doctest.py properly.
  - build.py: Build and install with cmake calls on Windows.

JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác oszi@inf.u-szeged.hu
This commit is contained in:
Csaba Osztrogonác
2019-08-26 17:27:30 +02:00
committed by Dániel Bátyai
parent b47c36ad18
commit fd075322fb
3 changed files with 24 additions and 9 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ class DoctestExtractor(object):
:param decl: the dictionary of the declaration parameters.
:param code: the list of lines of the doctest.
"""
outname = os.path.join(self._outdir, decl['name'])
outname = os.path.join(self._outdir, decl['name']).replace('\\', '/')
action = decl['test']
if self._dry:
print('%s %s' % (action, outname))