Sfoglia il codice sorgente

* Avoid using volatile if NO_THREADING is defined

git-svn-id: trunk@47624 -
michael 4 anni fa
parent
commit
ece9c98362
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 4 1
      packages/fpmkunit/src/fpmkunit.pp

+ 4 - 1
packages/fpmkunit/src/fpmkunit.pp

@@ -7116,8 +7116,11 @@ begin
           synchronised from the thread that wrote them; the critical section there
           acts as a read/write barrier }
         ReadBarrier;
-
+{$ifdef NO_THREADING}
+      Args.Add('-Fl'+FCachedlibcPath);
+{$ELSE}      
       Args.Add('-Fl'+volatile(FCachedlibcPath));
+{$ENDIF}      
     end;
 
   // Custom options which are added by dependencies