[flang-commits] [flang] [flang] Implement CHDIR intrinsic (PR #124280)

Jean-Didier PAILLEUX via flang-commits flang-commits at lists.llvm.org
Mon Jan 27 12:23:18 PST 2025


================
@@ -248,5 +249,12 @@ std::int64_t FORTRAN_PROCEDURE_NAME(access)(const char *name,
 }
 #endif
 
+// CHDIR(DIR)
+void RTNAME(Chdir)(const char *dir, int *status) {
+  int stat = chdir(dir);
----------------
JDPailleux wrote:

Thanks, I didn't know the alias was deprecated on Windows. I made the changes to use `_chdir`.

https://github.com/llvm/llvm-project/pull/124280


More information about the flang-commits mailing list