Skip to content

Commit a887c9a

Browse files
committed
Use absolute paths for build files
1 parent bfda951 commit a887c9a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pkg_swift_llvm.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,10 @@ def get_platform():
5959

6060
def configure_dummy_project(tmp, *, llvm=None, swift=None):
6161
print("configuring dummy cmake project")
62-
shutil.copy("CMakeLists.txt", tmp / "CMakeLists.txt")
63-
shutil.copy("empty.cpp", tmp / "empty.cpp")
62+
script_dir = pathlib.Path(os.path.realpath(__file__)).parent
63+
print(script_dir)
64+
shutil.copy(script_dir / "CMakeLists.txt", tmp / "CMakeLists.txt")
65+
shutil.copy(script_dir / "empty.cpp", tmp / "empty.cpp")
6466
tgt = tmp / "build"
6567
tgt.mkdir()
6668
run(["cmake", f"-DCMAKE_PREFIX_PATH={llvm};{swift}", "-DBUILD_SHARED_LIBS=OFF", ".."],

0 commit comments

Comments
 (0)